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

Function asyncAesKwCipher

lib/internal/crypto/aes.js:135–142  ·  view source on GitHub ↗
(mode, key, data)

Source from the content-addressed store, hash-verified

133}
134
135function asyncAesKwCipher(mode, key, data) {
136 return jobPromise(() => new AESCipherJob(
137 kCryptoJobWebCrypto,
138 mode,
139 getCryptoKeyHandle(key),
140 data,
141 getVariant('AES-KW', getCryptoKeyAlgorithm(key).length)));
142}
143
144function asyncAesGcmCipher(mode, key, data, algorithm) {
145 const { tagLength = 128 } = algorithm;

Callers 1

aesCipherFunction · 0.85

Calls 4

jobPromiseFunction · 0.85
getCryptoKeyHandleFunction · 0.85
getVariantFunction · 0.85
getCryptoKeyAlgorithmFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…