speed: Pass IV to EVP_CipherInit_ex for -evp runs with non-AEAD ciphers
Some (non-AEAD) ciphers require an IV to be used. Always pass a (dummy) IV when setting the key. It is ignored by ciphers that do not use an IV. Commit607a46d003
corrected the use of AEAD ciphers, but removed the IV from being passed to EVP_CipherInit_ex() for non-AEAD ciphers. Fixes:607a46d003
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Hugo Landau <hlandau@devever.net> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26346)
This commit is contained in:
parent
b049ce0e35
commit
b8028d4890
1 changed files with 1 additions and 1 deletions
|
@ -2999,7 +2999,7 @@ int speed_main(int argc, char **argv)
|
|||
|
||||
if (!ae_mode) {
|
||||
if (!EVP_CipherInit_ex(loopargs[k].ctx, NULL, NULL,
|
||||
loopargs[k].key, NULL, -1)) {
|
||||
loopargs[k].key, iv, -1)) {
|
||||
BIO_printf(bio_err, "\nFailed to set the key\n");
|
||||
dofail();
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue