diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-01-25 18:10:26 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-01-27 12:01:41 +1100 |
commit | d450eb84c802b2f78971f905b251a0fb89ebb7d1 (patch) | |
tree | c69413aa3d105408e3470475888bc1c6a2e222b1 /providers/implementations/ciphers/cipher_tdes.c | |
parent | 748a2967ffd52cf86696582fb1074d513493f469 (diff) | |
download | openssl-new-d450eb84c802b2f78971f905b251a0fb89ebb7d1.tar.gz |
Fix IV length of DES EDE ECB implementations
Fixes #17587
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17591)
Diffstat (limited to 'providers/implementations/ciphers/cipher_tdes.c')
-rw-r--r-- | providers/implementations/ciphers/cipher_tdes.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/providers/implementations/ciphers/cipher_tdes.c b/providers/implementations/ciphers/cipher_tdes.c index e63c143755..409e2b8306 100644 --- a/providers/implementations/ciphers/cipher_tdes.c +++ b/providers/implementations/ciphers/cipher_tdes.c @@ -19,11 +19,7 @@ #include "cipher_tdes.h" #include "prov/implementations.h" -/* - * NOTE: ECB mode does not use an IV - but existing test code is setting - * an IV. Fixing this could potentially make applications break. - */ /* ossl_tdes_ede3_ecb_functions */ -IMPLEMENT_tdes_cipher(ede3, EDE3, ecb, ECB, TDES_FLAGS, 64*3, 64, 64, block); +IMPLEMENT_tdes_cipher(ede3, EDE3, ecb, ECB, TDES_FLAGS, 64*3, 64, 0, block); /* ossl_tdes_ede3_cbc_functions */ IMPLEMENT_tdes_cipher(ede3, EDE3, cbc, CBC, TDES_FLAGS, 64*3, 64, 64, block); |