Lines Matching refs:decipher
33 const decipher = crypto.createDecipher('aes192', key);
34 let txt = decipher.update(ciph, 'hex', 'utf8');
35 txt += decipher.final('utf8');
69 const decipher = crypto.createDecipher('aes256', key);
70 let txt = decipher.update(ciph, 'base64', 'utf8');
71 txt += decipher.final('utf8');
212 let decipher = crypto.createDecipher('aes192', key); variable
215 txt = decipher.update(ciph, 'base64', 'ucs2');
216 txt += decipher.final('ucs2');
219 decipher = crypto.createDecipher('aes192', key);
220 txt = decipher.update(ciph, 'base64', 'ucs-2');
221 txt += decipher.final('ucs-2');
224 decipher = crypto.createDecipher('aes192', key);
225 txt = decipher.update(ciph, 'base64', 'utf-16le');
226 txt += decipher.final('utf-16le');
235 const decipher = crypto.createDecipher('aes-256-gcm', key);
236 assert.strictEqual(decipher.setAutoPadding(), decipher);
237 assert.strictEqual(decipher.setAuthTag(tagbuf), decipher);
238 assert.strictEqual(decipher.setAAD(aadbuf), decipher);
262 const decipher = crypto.createDecipher('aes-256-gcm', key);
263 decipher.setAAD(aadbuf);
264 decipher.setAuthTag(cipher.getAuthTag());
265 decipher.setAutoPadding();
266 decipher.update(encrypted);
267 decipher.final();
270 () => decipher.setAAD(aadbuf),
278 () => decipher.setAuthTag(cipher.getAuthTag()),
286 () => decipher.setAutoPadding(),