Fix IV length caching in EVP encryption code
authorHugo Landau <hlandau@openssl.org>
Thu, 10 Mar 2022 12:42:05 +0000 (12:42 +0000)
committerPauli <pauli@openssl.org>
Tue, 15 Mar 2022 10:05:05 +0000 (21:05 +1100)
commitb9a2f24e44f53c7c3a63a7f7b165e8267cbdda42
tree48f90834e784933106b36bd2684a16cfecf3c6b2
parent224ea84b4054de105447cde407fa3d39004a563d
Fix IV length caching in EVP encryption code

The IV length cache value was being invalidated excessively, causing IV
length caching to be ineffective.

Related to #17064.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17862)
crypto/evp/evp_enc.c