Skip to content

Commit 734ce67

Browse files
tniessenMylesBorins
authored andcommitted
test: use valid authentication tag length
Using authentication tags of invalid length does not conform to NIST standards. Backport-PR-URL: #18347 PR-URL: #17566 Refs: #17523 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 694828d commit 734ce67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-cipher-decipher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ testCipher2(Buffer.from('0123456789abcdef'));
141141
// setAutoPadding/setAuthTag/setAAD should return `this`
142142
{
143143
const key = '0123456789';
144-
const tagbuf = Buffer.from('tagbuf');
144+
const tagbuf = Buffer.from('auth_tag');
145145
const aadbuf = Buffer.from('aadbuf');
146146
const decipher = crypto.createDecipher('aes-256-gcm', key);
147147
assert.strictEqual(decipher.setAutoPadding(), decipher);

0 commit comments

Comments
 (0)