Lines Matching refs:cipher
25 const cipher = crypto.createCipher('aes192', key);
29 let ciph = cipher.update(plaintext, 'utf8', 'hex');
31 ciph += cipher.final('hex');
62 const cipher = crypto.createCipher('aes256', key);
66 let ciph = cipher.update(plaintext, 'utf8', 'base64');
67 ciph += cipher.final('base64');
247 const cipher = crypto.createCipher('aes-256-gcm', key); constant
248 cipher.setAAD(aadbuf);
249 cipher.setAutoPadding();
252 () => cipher.getAuthTag(),
260 const encrypted = Buffer.concat([cipher.update(data), cipher.final()]);
264 decipher.setAuthTag(cipher.getAuthTag());
278 () => decipher.setAuthTag(cipher.getAuthTag()),