test: use valid authentication tag length
Using authentication tags of invalid length does not conform to NIST standards. PR-URL: https://github.com/nodejs/node/pull/17566 Refs: https://github.com/nodejs/node/issues/17523 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
f4ab20412f
commit
e565534510
@ -216,7 +216,7 @@ testCipher2(Buffer.from('0123456789abcdef'));
|
||||
// setAutoPadding/setAuthTag/setAAD should return `this`
|
||||
{
|
||||
const key = '0123456789';
|
||||
const tagbuf = Buffer.from('tagbuf');
|
||||
const tagbuf = Buffer.from('auth_tag');
|
||||
const aadbuf = Buffer.from('aadbuf');
|
||||
const decipher = crypto.createDecipher('aes-256-gcm', key);
|
||||
assert.strictEqual(decipher.setAutoPadding(), decipher);
|
||||
|
Loading…
x
Reference in New Issue
Block a user