(aadbuf, options)
| 200 | } |
| 201 | |
| 202 | function 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…