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

Function assertKey

test/parallel/test-crypto-pqc-key-objects-slh-dsa.js:51–56  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

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

Callers 2

assertPublicKeyFunction · 0.70
assertPrivateKeyFunction · 0.70

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected