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');
107 () => crypto.createCipher('aes-256-cbc', 'secret').update(null),
163 const s = c.update('test', 'utf8', 'base64') + c.final('base64');
184 c.update('update');
192 c.update('update', ''); // Defaults to "utf8".
196 c.update('update', 'utf8');
200 c.update('update', 'utf-8');
209 let ciph = c.update(plaintext, 'utf16le', 'base64');
215 txt = decipher.update(ciph, 'base64', 'ucs2');
220 txt = decipher.update(ciph, 'base64', 'ucs-2');
225 txt = decipher.update(ciph, 'base64', 'utf-16le');
260 const encrypted = Buffer.concat([cipher.update(data), cipher.final()]);
266 decipher.update(encrypted);