Lines Matching refs:update
29 let ciph = cipher.update(plaintext, 'utf8', 'hex');
34 let txt = decipher.update(ciph, 'hex', 'utf8');
66 let ciph = cipher.update(plaintext, 'utf8', 'base64');
70 let txt = decipher.update(ciph, 'base64', 'utf8');
105 () => crypto.createCipher('aes-256-cbc', 'secret').update(null),
153 const s = c.update('test', 'utf8', 'base64') + c.final('base64');
171 // string to Cipher#update() should not assert.
174 c.update('update');
182 c.update('update', ''); // Defaults to "utf8".
186 c.update('update', 'utf8');
190 c.update('update', 'utf-8');
199 let ciph = c.update(plaintext, 'utf16le', 'base64');
205 txt = decipher.update(ciph, 'base64', 'ucs2');
210 txt = decipher.update(ciph, 'base64', 'ucs-2');
215 txt = decipher.update(ciph, 'base64', 'utf-16le');
250 const encrypted = Buffer.concat([cipher.update(data), cipher.final()]);
256 decipher.update(encrypted);