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

Function getCryptoKeyUsagesMask

lib/internal/crypto/keys.js:1189–1191  ·  view source on GitHub ↗

* Returns the CryptoKey's native `[[usages]]` mask. * @param {CryptoKey} key * @returns {number}

(key)

Source from the content-addressed store, hash-verified

1187 * @returns {number}
1188 */
1189function getCryptoKeyUsagesMask(key) {
1190 return getSlots(key)[kSlotUsagesMask];
1191}
1192
1193/**
1194 * Returns whether a CryptoKey's `[[usages]]` contains `usage`.

Callers 5

importKeySyncFunction · 0.85
toCryptoKeySecretFunction · 0.85
toCryptoKeyFunction · 0.85
hasCryptoKeyUsageFunction · 0.85
objectComparisonStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…