MCPcopy Index your code
hub / github.com/nodejs/node / normalizeKeyDetails

Function normalizeKeyDetails

lib/internal/crypto/keys.js:123–133  ·  view source on GitHub ↗
(details = kEmptyObject)

Source from the content-addressed store, hash-verified

121const kKeyObjectSlotAsymmetricKeyDetails = 4;
122
123function normalizeKeyDetails(details = kEmptyObject) {
124 if (details.publicExponent !== undefined) {
125 return {
126 __proto__: null,
127 ...details,
128 publicExponent:
129 bigIntArrayToUnsignedBigInt(new Uint8Array(details.publicExponent)),
130 };
131 }
132 return details;
133}
134
135// Creating the KeyObject class is a little complicated due to inheritance
136// and the fact that KeyObjects should be transferable between threads,

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…