Lines Matching refs:crypto
25 common.skip('missing crypto');
28 const crypto = require('crypto');
32 crypto.DEFAULT_ENCODING = 'buffer';
50 const ciphers = crypto.getCiphers();
77 ['crypto.DEFAULT_ENCODING is deprecated.', 'DEP0091'],
78 ['crypto.createCipher is deprecated.', 'DEP0106'],
114 const encrypt = crypto.createCipheriv(test.algo,
136 crypto.createDecipheriv(test.algo,
142 const decrypt = crypto.createDecipheriv(test.algo,
165 assert.throws(() => { crypto.createCipher(test.algo, test.password); },
168 const encrypt = crypto.createCipher(test.algo, test.password, options);
184 assert.throws(() => { crypto.createDecipher(test.algo, test.password); },
187 const decrypt = crypto.createDecipher(test.algo, test.password, options);
204 const encrypt = crypto.createCipheriv(test.algo,
215 crypto.createCipheriv(
227 crypto.createCipheriv('aes-128-cbc',
242 const decrypt = crypto.createDecipheriv('aes-128-gcm',
252 crypto.createCipheriv('aes-256-gcm',
264 crypto.createDecipheriv('aes-256-gcm',
281 const cipher = crypto.createCipheriv('aes-256-gcm',
296 const decipher = crypto.createDecipheriv('aes-256-gcm',
324 crypto.createCipheriv('aes-256-ccm',
338 crypto.createDecipheriv('aes-256-ccm',
353 crypto.createCipher('aes-256-ccm', 'bad password', { authTagLength });
362 crypto.createDecipher('aes-256-ccm', 'bad password', { authTagLength });
376 crypto.createCipheriv('aes-256-ccm',
386 crypto.createDecipheriv('aes-256-ccm',
395 crypto.createCipher('aes-256-ccm', 'bad password', { authTagLength });
399 crypto.createDecipher('aes-256-ccm', 'bad password', { authTagLength });
410 crypto.createCipheriv(`aes-256-${mode}`,
420 crypto.createDecipheriv(`aes-256-${mode}`,
428 crypto.createCipher(`aes-256-${mode}`, 'very bad password');
434 crypto.createDecipher(`aes-256-${mode}`, 'very bad password');
444 const cipher = crypto.createCipheriv('aes-256-ccm',
468 const cipher = () => crypto.createCipheriv('aes-256-ccm', key,
497 const cipher = crypto.createCipheriv('aes-256-ccm',
508 const cipher = crypto.createDecipheriv('aes-256-ccm',
525 const decrypt = crypto.createDecipheriv('aes-128-ccm', key, iv, {
544 const decrypt = crypto.createDecipheriv('aes-128-gcm', key, iv);
556 const encrypt = crypto.createCipheriv('aes-128-ccm', key, iv, options);
570 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, {
577 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, {
603 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, opts);
607 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, opts);
658 assert.throws(() => crypto.createCipheriv(
676 crypto.createCipher(algo, 'foo', opts),
677 crypto.createCipheriv(algo, key, iv, opts),
695 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
711 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
719 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, {
770 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
780 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);
803 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
813 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);