mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Remove unnecessary IV adaptation
This commit is contained in:
parent
458307f5ed
commit
7f6d8bffe3
1 changed files with 1 additions and 3 deletions
|
@ -79,9 +79,7 @@ Blowfish uses a key length of 8 bytes (64 bits).`);
|
||||||
input = Utils.convertToByteString(input, inputType);
|
input = Utils.convertToByteString(input, inputType);
|
||||||
|
|
||||||
const decipher = Blowfish.createDecipher(key, mode);
|
const decipher = Blowfish.createDecipher(key, mode);
|
||||||
decipher.start({
|
decipher.start({iv: iv});
|
||||||
iv: iv.length === 0 ? "" : iv,
|
|
||||||
});
|
|
||||||
decipher.update(forge.util.createBuffer(input));
|
decipher.update(forge.util.createBuffer(input));
|
||||||
const result = decipher.finish();
|
const result = decipher.finish();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue