MCPcopy
hub / github.com/electerm/electerm / parseKey

Function parseKey

test/unit-ci/session-ssh-agent.spec.js:50–55  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

48// ─── helpers ──────────────────────────────────────────────────────────────────
49
50function parseKey (key) {
51 let parsed = utils.parseKey(key)
52 if (Array.isArray(parsed)) parsed = parsed[0]
53 if (parsed instanceof Error) throw parsed
54 return parsed
55}
56
57function publicKeyMatchesCtx (ctx, publicKeyPem) {
58 return Buffer.compare(

Callers 1

publicKeyMatchesCtxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected