Skip to content

Commit e565534

Browse files
committed
test: use valid authentication tag length
Using authentication tags of invalid length does not conform to NIST standards. 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 f4ab204 commit e565534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ testCipher2(Buffer.from('0123456789abcdef'));
216216
// setAutoPadding/setAuthTag/setAAD should return `this`
217217
{
218218
const key = '0123456789';
219-
const tagbuf = Buffer.from('tagbuf');
219+
const tagbuf = Buffer.from('auth_tag');
220220
const aadbuf = Buffer.from('aadbuf');
221221
const decipher = crypto.createDecipher('aes-256-gcm', key);
222222
assert.strictEqual(decipher.setAutoPadding(), decipher);

0 commit comments

Comments
 (0)