AES Decrypt now handles blank IVs correctly. Fixes #613

This commit is contained in:
n1474335 committed 2019-08-21 14:27:56 +01:00
1 parent 772c6bbba5
commit 863551ee1d
2 files changed
+32 -1

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ The following algorithms will be used based on the size of the key:
const decipher = forge.cipher.createDecipher("AES-" + mode, key);
decipher.start({
iv: iv,
iv: iv.length === 0 ? "" : iv,
tag: gcmTag
});
decipher.update(forge.util.createBuffer(input));