mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
AES Decrypt now handles blank IVs correctly. Fixes #613
This commit is contained in:
parent
772c6bbba5
commit
863551ee1d
2 changed files with 32 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue