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

Function getCryptoKeyUsagesFromSlots

lib/internal/crypto/keys.js:1209–1216  ·  view source on GitHub ↗

* Returns the CryptoKey's cached canonical usages array for internal * consumers, expanding it from the native usage mask on first access. * @param {Array} slots * @returns {string[]}

(slots)

Source from the content-addressed store, hash-verified

1207 * @returns {string[]}
1208 */
1209function getCryptoKeyUsagesFromSlots(slots) {
1210 let usages = slots[kSlotUsages];
1211 if (usages === undefined) {
1212 usages = getUsagesFromMask(slots[kSlotUsagesMask]);
1213 slots[kSlotUsages] = usages;
1214 }
1215 return usages;
1216}
1217
1218/**
1219 * Returns the CryptoKey's `[[usages]]` internal slot, bypassing the

Callers 2

usagesMethod · 0.85
getCryptoKeyUsagesFunction · 0.85

Calls 1

getUsagesFromMaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…