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

Function asyncAesCtrCipher

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

Source from the content-addressed store, hash-verified

112}
113
114function asyncAesCtrCipher(mode, key, data, algorithm) {
115 return jobPromise(() => new AESCipherJob(
116 kCryptoJobWebCrypto,
117 mode,
118 getCryptoKeyHandle(key),
119 data,
120 getVariant('AES-CTR', getCryptoKeyAlgorithm(key).length),
121 algorithm.counter,
122 algorithm.length));
123}
124
125function asyncAesCbcCipher(mode, key, data, algorithm) {
126 return jobPromise(() => new AESCipherJob(

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…