diff options
author | Tobias Nießen <tniessen@tnie.de> | 2017-12-09 13:12:47 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-12-22 15:50:02 +0100 |
commit | e56553451045674bf2d5d70da7b32314551f5f6f (patch) | |
tree | 69966772377f90e08c93903cff86e7acf1e1590c /test/parallel/test-crypto-cipher-decipher.js | |
parent | f4ab20412f459cfbfaacf14bbd5235bca13e4c57 (diff) | |
download | android-node-v8-e56553451045674bf2d5d70da7b32314551f5f6f.tar.gz android-node-v8-e56553451045674bf2d5d70da7b32314551f5f6f.tar.bz2 android-node-v8-e56553451045674bf2d5d70da7b32314551f5f6f.zip |
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>
Diffstat (limited to 'test/parallel/test-crypto-cipher-decipher.js')
-rw-r--r-- | test/parallel/test-crypto-cipher-decipher.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js index 2a4d188dc4..1e84d2ab00 100644 --- a/test/parallel/test-crypto-cipher-decipher.js +++ b/test/parallel/test-crypto-cipher-decipher.js @@ -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); |