Lines Matching refs:crypto
28 const crypto = require('crypto'); constant
31 crypto.DEFAULT_ENCODING = 'buffer';
49 const ciphers = crypto.getCiphers();
113 const encrypt = crypto.createCipheriv(test.algo,
135 crypto.createDecipheriv(test.algo,
141 const decrypt = crypto.createDecipheriv(test.algo,
164 assert.throws(() => { crypto.createCipher(test.algo, test.password); },
167 const encrypt = crypto.createCipher(test.algo, test.password, options);
183 assert.throws(() => { crypto.createDecipher(test.algo, test.password); },
186 const decrypt = crypto.createDecipher(test.algo, test.password, options);
203 const encrypt = crypto.createCipheriv(test.algo,
214 crypto.createCipheriv(
226 crypto.createCipheriv('aes-128-cbc',
241 const decrypt = crypto.createDecipheriv('aes-128-gcm',
251 crypto.createCipheriv('aes-256-gcm',
263 crypto.createDecipheriv('aes-256-gcm',
280 const cipher = crypto.createCipheriv('aes-256-gcm',
295 const decipher = crypto.createDecipheriv('aes-256-gcm',
323 crypto.createCipheriv('aes-256-ccm',
337 crypto.createDecipheriv('aes-256-ccm',
352 crypto.createCipher('aes-256-ccm', 'bad password', { authTagLength });
361 crypto.createDecipher('aes-256-ccm', 'bad password', { authTagLength });
375 crypto.createCipheriv('aes-256-ccm',
385 crypto.createDecipheriv('aes-256-ccm',
394 crypto.createCipher('aes-256-ccm', 'bad password', { authTagLength });
398 crypto.createDecipher('aes-256-ccm', 'bad password', { authTagLength });
409 crypto.createCipheriv(`aes-256-${mode}`,
419 crypto.createDecipheriv(`aes-256-${mode}`,
427 crypto.createCipher(`aes-256-${mode}`, 'very bad password');
433 crypto.createDecipher(`aes-256-${mode}`, 'very bad password');
443 const cipher = crypto.createCipheriv('aes-256-ccm',
467 const cipher = () => crypto.createCipheriv('aes-256-ccm', key,
496 const cipher = crypto.createCipheriv('aes-256-ccm',
507 const cipher = crypto.createDecipheriv('aes-256-ccm',
524 const decrypt = crypto.createDecipheriv('aes-128-ccm', key, iv, {
543 const decrypt = crypto.createDecipheriv('aes-128-gcm', key, iv);
555 const encrypt = crypto.createCipheriv('aes-128-ccm', key, iv, options);
569 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, {
576 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, {
602 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, opts);
606 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, opts);
657 assert.throws(() => crypto.createCipheriv(