(pub)
| 247 | } |
| 248 | |
| 249 | function genOpenSSHEdPub(pub) { |
| 250 | const publicKey = Buffer.allocUnsafe(4 + 11 + 4 + pub.length); |
| 251 | |
| 252 | writeUInt32BE(publicKey, 11, 0); |
| 253 | publicKey.utf8Write('ssh-ed25519', 4, 11); |
| 254 | |
| 255 | writeUInt32BE(publicKey, pub.length, 15); |
| 256 | publicKey.set(pub, 19); |
| 257 | |
| 258 | return publicKey; |
| 259 | } |
| 260 | |
| 261 | function genOpenSSLEdPriv(priv) { |
| 262 | const asnWriter = new Ber.Writer(); |
no test coverage detected
searching dependent graphs…