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

Function aesGenerateKey

lib/internal/crypto/aes.js:184–196  ·  view source on GitHub ↗
(algorithm, extractable, usages)

Source from the content-addressed store, hash-verified

182}
183
184function aesGenerateKey(algorithm, extractable, usages) {
185 const { name, length } = algorithm;
186
187 const usagesSet = validateUsagesNotEmpty(
188 validateKeyUsages(usages, kUsages[name], name));
189
190 return jobPromise(() => new SecretKeyGenJob(
191 kCryptoJobWebCrypto,
192 length,
193 { name, length },
194 getUsagesMask(usagesSet),
195 extractable));
196}
197
198function aesImportKey(
199 algorithm,

Callers

nothing calls this directly

Calls 4

validateUsagesNotEmptyFunction · 0.85
validateKeyUsagesFunction · 0.85
jobPromiseFunction · 0.85
getUsagesMaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…