2
0
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:
n1474335
2019-08-21 14:27:56 +01:00
parent 772c6bbba5
commit 863551ee1d
2 changed files with 32 additions and 1 deletions

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));