Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
makeBufferParser
Function · 0.85
bigIntFromBuffer
Function · 0.85
bigIntToBuffer
Function · 0.85
makePEM
Function · 0.85
genRSAASN1Buf
Function · 0.85
parseKey
Function · 0.85
readUInt32BE
Function · 0.85
bufferSlice
Function · 0.85
combineBuffers
Function · 0.85
parseOpenSSHPrivKeys
Function · 0.85
genOpenSSLRSAPub
Function · 0.85
genOpenSSHRSAPub
Function · 0.85
Tested by
no test coverage detected