(details = kEmptyObject)
| 121 | const kKeyObjectSlotAsymmetricKeyDetails = 4; |
| 122 | |
| 123 | function 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, |
no test coverage detected
searching dependent graphs…