AES Decrypt now handles blank IVs correctly. Fixes #613
This commit is contained in:
1 parent
772c6bbba5
commit
863551ee1d
2 files changed
+32
-1
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user