We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8012476 commit 3b6d236Copy full SHA for 3b6d236
test/aes.js
@@ -11,6 +11,9 @@ test('ciphers', function (t) {
11
var out = [];
12
out.push(decrypter.update(crypter.update(data)));
13
out.push(decrypter.update(crypter.final()));
14
+ if (cipher.indexOf('gcm') > -1) {
15
+ decrypter.setAuthTag(crypter.getAuthTag());
16
+ }
17
out.push(decrypter.final());
18
t.equals(data.toString('hex'), Buffer.concat(out).toString('hex'));
19
});
0 commit comments