(key)
| 48 | // ─── helpers ────────────────────────────────────────────────────────────────── |
| 49 | |
| 50 | function 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 | |
| 57 | function publicKeyMatchesCtx (ctx, publicKeyPem) { |
| 58 | return Buffer.compare( |
no outgoing calls
no test coverage detected