From f79d2efedb53aff8b7dbe2af9dbec4f8c771dfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 9 Dec 2017 13:12:47 +0100 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-crypto-cipher-decipher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js index c1f1d84b797810..b0d7feb1071a51 100644 --- a/test/parallel/test-crypto-cipher-decipher.js +++ b/test/parallel/test-crypto-cipher-decipher.js @@ -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);