Skip to content
Commit f428e211 authored by Pauli's avatar Pauli
Browse files

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: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarDmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18875)

(cherry picked from commit e0e338c8)
parent cc750a9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment