Skip to content

Commit 553786d

Browse files
committed
Merge branch 'more-modes' of github.com:calvinmetcalf/crypto-browserify into more-modes
2 parents 230b3ca + 0edd9e3 commit 553786d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"node": "*"
1717
},
1818
"dependencies": {
19-
"browserify-aes": "0.4.0",
19+
"browserify-aes": "0.6.0",
2020
"browserify-sign": "2.4.0",
2121
"pbkdf2-compat": "2.0.1",
2222
"ripemd160": "0.2.0",

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)