Lines Matching defs:algo
87 if (!ciphers.includes(test.algo)) {
88 common.printSkipMessage(`unsupported ${test.algo} test`);
97 const isCCM = /^aes-(128|192|256)-ccm$/.test(test.algo);
98 const isOCB = /^aes-(128|192|256)-ocb$/.test(test.algo);
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,
216 test.algo,
628 algo: 'chacha20-poly1305',
659 valid.algo,
670 const algo = 'aes-128-ccm';
676 crypto.createCipher(algo, 'foo', opts),
677 crypto.createCipheriv(algo, key, iv, opts),
755 const rfcTestCases = TEST_CASES.filter(({ algo, tampered }) => {
756 return algo === 'chacha20-poly1305' && tampered === false;
792 const rfcTestCases = TEST_CASES.filter(({ algo, tampered }) => {
793 return algo === 'chacha20-poly1305' && tampered === false;