mirror of
https://github.com/gchq/CyberChef
synced 2025-12-16 00:04:20 +00:00
AES Decrypt now handles blank IVs correctly. Fixes #613
This commit is contained in:
@@ -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