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

Function setAAD

lib/internal/crypto/cipher.js:202–209  ·  view source on GitHub ↗
(aadbuf, options)

Source from the content-addressed store, hash-verified

200}
201
202function setAAD(aadbuf, options) {
203 const encoding = getStringOption(options, 'encoding');
204 const plaintextLength = getUIntOption(options, 'plaintextLength');
205 aadbuf = getArrayBufferOrView(aadbuf, 'aadbuf', encoding);
206 if (!this[kHandle].setAAD(aadbuf, plaintextLength))
207 throw new ERR_CRYPTO_INVALID_STATE('setAAD');
208 return this;
209};
210
211// The Cipheriv class is part of the legacy Node.js crypto API. It exposes
212// a stream-based encryption/decryption model. For backwards compatibility

Callers

nothing calls this directly

Calls 2

getStringOptionFunction · 0.85
getUIntOptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…