(cipher, key, options, isEncrypt, iv)
| 123 | } |
| 124 | |
| 125 | function createCipherWithIV(cipher, key, options, isEncrypt, iv) { |
| 126 | validateString(cipher, 'cipher'); |
| 127 | const encoding = getStringOption(options, 'encoding'); |
| 128 | key = prepareSecretKey(key, encoding); |
| 129 | iv = iv === null ? null : getArrayBufferOrView(iv, 'iv'); |
| 130 | FunctionPrototypeCall(createCipherBase, this, cipher, key, options, isEncrypt, iv); |
| 131 | } |
| 132 | |
| 133 | // The Cipher class is part of the legacy Node.js crypto API. It exposes |
| 134 | // a stream-based encryption/decryption model. For backwards compatibility |
nothing calls this directly
no test coverage detected
searching dependent graphs…