From c09ac990e90bd7deece0f32e35b540a21d7e9dad Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Tue, 1 Oct 2019 22:54:21 +0100 Subject: [PATCH] Remove unnecessary IV adaptation --- src/core/operations/BlowfishDecrypt.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/operations/BlowfishDecrypt.mjs b/src/core/operations/BlowfishDecrypt.mjs index 1285221c..07b6a0ff 100644 --- a/src/core/operations/BlowfishDecrypt.mjs +++ b/src/core/operations/BlowfishDecrypt.mjs @@ -79,9 +79,7 @@ Blowfish uses a key length of 8 bytes (64 bits).`); input = Utils.convertToByteString(input, inputType); const decipher = Blowfish.createDecipher(key, mode); - decipher.start({ - iv: iv.length === 0 ? "" : iv, - }); + decipher.start({iv: iv}); decipher.update(forge.util.createBuffer(input)); const result = decipher.finish();