mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
DES no longer requires an IV in ECB mode
This commit is contained in:
parent
b630d5e205
commit
c0f3e2a5b1
4 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ class DESDecrypt extends Operation {
|
||||||
DES uses a key length of 8 bytes (64 bits).
|
DES uses a key length of 8 bytes (64 bits).
|
||||||
Triple DES uses a key length of 24 bytes (192 bits).`);
|
Triple DES uses a key length of 24 bytes (192 bits).`);
|
||||||
}
|
}
|
||||||
if (iv.length !== 8) {
|
if (iv.length !== 8 && mode !== "ECB") {
|
||||||
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
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).
|
||||||
|
|
|
@ -73,7 +73,7 @@ class DESEncrypt extends Operation {
|
||||||
DES uses a key length of 8 bytes (64 bits).
|
DES uses a key length of 8 bytes (64 bits).
|
||||||
Triple DES uses a key length of 24 bytes (192 bits).`);
|
Triple DES uses a key length of 24 bytes (192 bits).`);
|
||||||
}
|
}
|
||||||
if (iv.length !== 8) {
|
if (iv.length !== 8 && mode !== "ECB") {
|
||||||
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
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).
|
||||||
|
|
|
@ -75,7 +75,7 @@ class TripleDESDecrypt extends Operation {
|
||||||
Triple DES uses a key length of 24 bytes (192 bits).
|
Triple DES uses a key length of 24 bytes (192 bits).
|
||||||
DES uses a key length of 8 bytes (64 bits).`);
|
DES uses a key length of 8 bytes (64 bits).`);
|
||||||
}
|
}
|
||||||
if (iv.length !== 8) {
|
if (iv.length !== 8 && mode !== "ECB") {
|
||||||
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
||||||
|
|
||||||
Triple DES uses an IV length of 8 bytes (64 bits).
|
Triple DES uses an IV length of 8 bytes (64 bits).
|
||||||
|
|
|
@ -75,7 +75,7 @@ class TripleDESEncrypt extends Operation {
|
||||||
Triple DES uses a key length of 24 bytes (192 bits).
|
Triple DES uses a key length of 24 bytes (192 bits).
|
||||||
DES uses a key length of 8 bytes (64 bits).`);
|
DES uses a key length of 8 bytes (64 bits).`);
|
||||||
}
|
}
|
||||||
if (iv.length !== 8) {
|
if (iv.length !== 8 && mode !== "ECB") {
|
||||||
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
throw new OperationError(`Invalid IV length: ${iv.length} bytes
|
||||||
|
|
||||||
Triple DES uses an IV length of 8 bytes (64 bits).
|
Triple DES uses an IV length of 8 bytes (64 bits).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue