mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Added length check to Triple DES IVs
This commit is contained in:
parent
011dc09d5e
commit
be365f66ef
5 changed files with 18 additions and 4 deletions
|
@ -76,7 +76,8 @@ Triple DES uses a key length of 24 bytes (192 bits).`);
|
|||
if (iv.length !== 8) {
|
||||
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
||||
|
||||
DES uses an IV length of 8 bytes (64 bits).`);
|
||||
DES uses an IV length of 8 bytes (64 bits).
|
||||
Make sure you have specified the type correctly (e.g. Hex vs UTF8).`);
|
||||
}
|
||||
|
||||
input = Utils.convertToByteString(input, inputType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue