Lines Matching refs:cipher
96 function createCipherBase(cipher, credential, options, decipher, iv) { argument
101 this[kHandle].init(cipher, credential, authTagLength);
103 this[kHandle].initiv(cipher, credential, iv, authTagLength);
110 function createCipher(cipher, password, options, decipher) { argument
111 validateString(cipher, 'cipher');
114 createCipherBase.call(this, cipher, password, options, decipher);
117 function createCipherWithIV(cipher, key, options, decipher, iv) { argument
118 validateString(cipher, 'cipher');
121 createCipherBase.call(this, cipher, key, options, decipher, iv);
124 function Cipher(cipher, password, options) { argument
126 return new Cipher(cipher, password, options);
128 createCipher.call(this, cipher, password, options, true);
223 function Cipheriv(cipher, key, iv, options) { argument
225 return new Cipheriv(cipher, key, iv, options);
227 createCipherWithIV.call(this, cipher, key, options, true, iv);
248 function Decipher(cipher, password, options) { argument
250 return new Decipher(cipher, password, options);
252 createCipher.call(this, cipher, password, options, false);
260 function Decipheriv(cipher, key, iv, options) { argument
262 return new Decipheriv(cipher, key, iv, options);
264 createCipherWithIV.call(this, cipher, key, options, false, iv);