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

Function getKeyPairUsages

lib/internal/crypto/webcrypto_util.js:103–108  ·  view source on GitHub ↗

* Splits requested usages into public and private key usage sets. * @param {SafeSet } usagesSet * @param {KeyUsageLists} allowed * @returns {KeyUsageSets}

(usagesSet, allowed)

Source from the content-addressed store, hash-verified

101 * @returns {KeyUsageSets}
102 */
103function getKeyPairUsages(usagesSet, allowed) {
104 return {
105 public: getUsagesUnion(usagesSet, allowed.public),
106 private: getUsagesUnion(usagesSet, allowed.private),
107 };
108}
109
110/**
111 * Creates the accepted public, private, and key generation usage lists.

Callers 5

mlDsaGenerateKeyFunction · 0.85
mlKemGenerateKeyFunction · 0.85
ecGenerateKeyFunction · 0.85
cfrgGenerateKeyFunction · 0.85
rsaKeyGenerateFunction · 0.85

Calls 1

getUsagesUnionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…