MCPcopy Create free account
hub / github.com/nodejs/node / getUsages

Function getUsages

test/parallel/test-crypto-key-objects-to-crypto-key.js:52–54  ·  view source on GitHub ↗
(keyObject, usages)

Source from the content-addressed store, hash-verified

50}
51
52function getUsages(keyObject, usages) {
53 return keyObject.type === 'public' ? usages.public : usages.private;
54}
55
56function secretKey(length) {
57 return createSecretKey(randomBytes(length >> 3));

Callers 3

asymmetricVectorsFunction · 0.70
rsaVectorsFunction · 0.70
ecVectorsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected