Lines Matching defs:key

115                                           Buffer.from(test.key, 'hex'),
137 Buffer.from(test.key, 'hex'),
143 Buffer.from(test.key, 'hex'),
205 Buffer.from(test.key, 'hex'),
217 Buffer.from(test.key, 'hex'),
467 const key = 'FxLKsqdmv0E9xrQhp0b1ZgI0K7JFZJM8';
468 const cipher = () => crypto.createCipheriv('aes-256-ccm', key,
522 const key = Buffer.from('1ed2233fa2223ef5d7df08546049406c', 'hex');
525 const decrypt = crypto.createDecipheriv('aes-128-ccm', key, iv, {
542 const key = Buffer.from('1ed2233fa2223ef5d7df08546049406c', 'hex');
544 const decrypt = crypto.createDecipheriv('aes-128-gcm', key, iv);
553 const key = 'x'.repeat(16);
556 const encrypt = crypto.createCipheriv('aes-128-ccm', key, iv, options);
565 const key = Buffer.from('0123456789abcdef', 'utf8');
570 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, {
577 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, {
598 const key = Buffer.from('0123456789abcdef', 'utf8');
603 const cipher = crypto.createCipheriv(`aes-128-${mode}`, key, iv, opts);
607 const decipher = crypto.createDecipheriv(`aes-128-${mode}`, key, iv, opts);
629 key: '808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f',
660 Buffer.from(valid.key, 'hex'),
671 const key = Buffer.alloc(16);
677 crypto.createCipheriv(algo, key, iv, opts),
690 const key = Buffer.alloc(32);
695 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
706 const key = Buffer.alloc(32);
711 crypto.createCipheriv('chacha20-poly1305', key, iv, { authTagLength });
719 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, {
761 const key = Buffer.from(testCase.key, 'hex');
770 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
780 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);
798 const key = Buffer.from(testCase.key, 'hex');
803 const cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, opt);
813 const decipher = crypto.createDecipheriv('chacha20-poly1305', key, iv, opt);