MCPcopy Create free account
hub / github.com/mscdex/ssh2 / keyParser.js

File keyParser.js

lib/protocol/keyParser.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// TODO:
2// * utilize `crypto.create(Private|Public)Key()` and `keyObject.export()`
3// * handle multi-line header values (OpenSSH)?
4// * more thorough validation?

Callers

nothing calls this directly

Calls 15

makeBufferParserFunction · 0.85
bigIntFromBufferFunction · 0.85
bigIntToBufferFunction · 0.85
makePEMFunction · 0.85
genRSAASN1BufFunction · 0.85
parseKeyFunction · 0.85
readUInt32BEFunction · 0.85
bufferSliceFunction · 0.85
combineBuffersFunction · 0.85
parseOpenSSHPrivKeysFunction · 0.85
genOpenSSLRSAPubFunction · 0.85
genOpenSSHRSAPubFunction · 0.85

Tested by

no test coverage detected