]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix bug in EVP_CIPHER_CTX_get_iv_length()
authorPauli <pauli@openssl.org>
Tue, 26 Jul 2022 01:46:45 +0000 (11:46 +1000)
committerPauli <pauli@openssl.org>
Wed, 3 Aug 2022 02:25:24 +0000 (12:25 +1000)
commite0e338c8c50c226efc92fe79c788c9cdc03fc01f
tree724dc4d8d87aad472c14f3362dba3bc6aa5fa566
parent771fef7793ae572be7567e408a07bfefe6a09ea0
Fix bug in EVP_CIPHER_CTX_get_iv_length()

Out of range values could possibly be returned due to a lack of range checking.
Very unlikely to be exploitable for our provider because sensible values are
returned for all ciphers.

Also fixed the defaulting code so that the cipher's IV length is returned if
the cipher ctx doesn't support getting.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18875)
crypto/evp/evp_lib.c