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

Function assertKey

test/parallel/test-crypto-pqc-key-objects-ml-kem.js:50–55  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

48 }
49
50 function assertKey(key) {
51 assert.deepStrictEqual(key.asymmetricKeyDetails, {});
52 assert.strictEqual(key.asymmetricKeyType, asymmetricKeyType);
53 assert.strictEqual(key.equals(key), true);
54 assert.deepStrictEqual(key, key);
55 }
56
57 function assertPublicKey(key) {
58 assertKey(key);

Callers 2

assertPublicKeyFunction · 0.70
assertPrivateKeyFunction · 0.70

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected