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

Function createCipherWithIV

lib/internal/crypto/cipher.js:125–131  ·  view source on GitHub ↗
(cipher, key, options, isEncrypt, iv)

Source from the content-addressed store, hash-verified

123}
124
125function 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

Callers

nothing calls this directly

Calls 2

getStringOptionFunction · 0.85
prepareSecretKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…