Skip to content

Commit 3b6d236

Browse files
committed
working tests
1 parent 8012476 commit 3b6d236

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/aes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ test('ciphers', function (t) {
1111
var out = [];
1212
out.push(decrypter.update(crypter.update(data)));
1313
out.push(decrypter.update(crypter.final()));
14+
if (cipher.indexOf('gcm') > -1) {
15+
decrypter.setAuthTag(crypter.getAuthTag());
16+
}
1417
out.push(decrypter.final());
1518
t.equals(data.toString('hex'), Buffer.concat(out).toString('hex'));
1619
});

0 commit comments

Comments
 (0)