mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
c328e580d1
commit
f79d2efedb
1 file changed
+1
-1
@@ -141,7 +141,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);
|
||||
|
||||
Reference in new issue
Block a user