Note that EVP_CIPHER_iv_length returns negative values on error
authorPauli <pauli@openssl.org>
Thu, 28 Jul 2022 01:23:29 +0000 (11:23 +1000)
committerHugo Landau <hlandau@openssl.org>
Fri, 29 Jul 2022 09:15:06 +0000 (10:15 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18894)

doc/man3/EVP_EncryptInit.pod

index 392ce5dbc579f0902425f5d397f8369845737808..8f1318b79a8576a4a5e66083175eb3a9e529fc7e 100644 (file)
@@ -313,7 +313,7 @@ length.
 EVP_CIPHER_CTX_set_padding() always returns 1.
 
 EVP_CIPHER_iv_length() and EVP_CIPHER_CTX_iv_length() return the IV
-length or zero if the cipher does not use an IV.
+length, zero if the cipher does not use an IV and a negative value on error.
 
 EVP_CIPHER_type() and EVP_CIPHER_CTX_type() return the NID of the cipher's
 OBJECT IDENTIFIER or NID_undef if it has no defined OBJECT IDENTIFIER.