Lines Matching defs:iv

92   if (common.hasFipsCrypto && test.iv.length < 24) {
116 Buffer.from(test.iv, 'hex'),
138 Buffer.from(test.iv, 'hex'),
144 Buffer.from(test.iv, 'hex'),
206 Buffer.from(test.iv, 'hex'),
319 // Test that create(De|C)ipher(iv)? throws if the mode is CCM and an invalid
405 // Test that create(De|C)ipher(iv)? throws if the mode is CCM or OCB and no
523 const iv = Buffer.from('7305220bca40d4c90e1791e9', 'hex');
525 const decrypt = crypto.createDecipheriv('aes-128-ccm', key, iv, {
543 const iv = Buffer.from('579d9dfde9cd93d743da1ceaeebb86e4', 'hex');
544 const decrypt = crypto.createDecipheriv('aes-128-gcm', key, iv);
554 const iv = Buffer.from('112233445566778899aabb', 'hex');
556 const encrypt = crypto.createCipheriv('aes-128-ccm', key, iv, options);
566 const iv = Buffer.from('0123456789ab', 'utf8');
570 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, {
577 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, {
599 const iv = Buffer.from('0123456789ab', 'utf8');
603 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, opts);
607 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, opts);
630 iv: '070000004041424344454647',
657 const prefix = ivLength - valid.iv.length / 2;
661 Buffer.from(H(prefix) + valid.iv, 'hex')
662 ), errMessages.length, `iv length ${ivLength} was not rejected`);
672 const iv = Buffer.alloc(12);
677 crypto.createCipheriv(algo, key, iv, opts),
691 const iv = Buffer.alloc(12);
695 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
707 const iv = Buffer.alloc(12);
711 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
719 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, {
762 const iv = Buffer.from(testCase.iv, 'hex');
770 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
780 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);
799 const iv = Buffer.from(testCase.iv, 'hex');
803 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
813 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);