Check that IV length is not less than zero
As EVP_CIPHER_CTX_get_iv_length indicates failure with -1, this error should be processed. Also the result of this function shouldn't be assigned to an unsigned variable. Reviewed-by:Paul Dale <pauli@openssl.org> Reviewed-by:
Tomas Mraz <tomas@openssl.org> Reviewed-by:
Hugo Landau <hlandau@openssl.org> Signed-off-by:
Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by:
Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18922)
Loading
Please register or sign in to comment