Lines Matching refs:cipher
116 function createCipherBase(cipher, credential, options, decipher, iv) {
120 this[kHandle].init(cipher, credential, authTagLength);
122 this[kHandle].initiv(cipher, credential, iv, authTagLength);
129 function createCipher(cipher, password, options, decipher) {
130 validateString(cipher, 'cipher');
133 ReflectApply(createCipherBase, this, [cipher, password, options, decipher]);
136 function createCipherWithIV(cipher, key, options, decipher, iv) {
137 validateString(cipher, 'cipher');
141 ReflectApply(createCipherBase, this, [cipher, key, options, decipher, iv]);
149 function Cipher(cipher, password, options) {
151 return new Cipher(cipher, password, options);
153 ReflectApply(createCipher, this, [cipher, password, options, true]);
245 function Cipheriv(cipher, key, iv, options) {
247 return new Cipheriv(cipher, key, iv, options);
249 ReflectApply(createCipherWithIV, this, [cipher, key, options, true, iv]);
275 function Decipher(cipher, password, options) {
277 return new Decipher(cipher, password, options);
279 ReflectApply(createCipher, this, [cipher, password, options, false]);
291 function Decipheriv(cipher, key, iv, options) {
293 return new Decipheriv(cipher, key, iv, options);
295 ReflectApply(createCipherWithIV, this, [cipher, key, options, false, iv]);