Change EVP_CIPHER_CTX_iv_length() to return current ivlen for some modes
authorShane Lontis <shane.lontis@oracle.com>
Thu, 8 Aug 2019 03:19:23 +0000 (13:19 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Thu, 8 Aug 2019 03:19:23 +0000 (13:19 +1000)
commit728f9449c3e5a974593c516cd609b60e760ed537
treea56350cad75a7b6dba1b641f132d78c58e5dc66d
parentda4ea0cfe63619899ceb7575a7c8fbf1507fdcb6
Change EVP_CIPHER_CTX_iv_length() to return current ivlen for some modes

Note a flag needed to be added since some ssl tests fail if they output any error
(even if the error is ignored). Only ciphers that handle the GET_IV_LEN control set this flag.

Fixes #8330

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9499)
crypto/evp/e_aes.c
crypto/evp/e_aria.c
crypto/evp/e_chacha20_poly1305.c
crypto/evp/evp_lib.c
include/openssl/evp.h