]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Minor nit fix to EVP_CipherFinal_ex() return code documentation.
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Fri, 1 Nov 2024 13:18:38 +0000 (14:18 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 29 Nov 2024 18:03:32 +0000 (19:03 +0100)
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25849)

(cherry picked from commit 54332adf29ef4ddac9dea5ec06423b01dbb02996)

doc/man3/EVP_EncryptInit.pod

index 49ec0780e0592b5776305648107b05e82f0c5030..40e0fe3335cd033d863d266ded81f8a058687588 100644 (file)
@@ -1256,15 +1256,18 @@ return 1 for success and 0 for failure.
 EVP_DecryptInit_ex2() and EVP_DecryptUpdate() return 1 for success and 0 for failure.
 EVP_DecryptFinal_ex() returns 0 if the decrypt failed or 1 for success.
 
-EVP_CipherInit_ex2() and EVP_CipherUpdate() return 1 for success and 0 for failure.
-EVP_CipherFinal_ex() returns 0 for a decryption failure or 1 for success.
+EVP_CipherInit_ex2() and EVP_CipherUpdate() return 1 for success and 0 for
+failure.
+EVP_CipherFinal_ex() returns 0 for an encryption/decryption failure or 1 for
+success.
 
 EVP_Cipher() returns 1 on success and <= 0 on failure, if the flag
 B<EVP_CIPH_FLAG_CUSTOM_CIPHER> is not set for the cipher, or if the cipher has
 not been initialized via a call to B<EVP_CipherInit_ex2>.
-EVP_Cipher() returns the number of bytes written to I<out> for encryption / decryption, or
-the number of bytes authenticated in a call specifying AAD for an AEAD cipher, if the flag
-B<EVP_CIPH_FLAG_CUSTOM_CIPHER> is set for the cipher.
+EVP_Cipher() returns the number of bytes written to I<out> for
+encryption/decryption, or the number of bytes authenticated in a call specifying
+AAD for an AEAD cipher, if the flag B<EVP_CIPH_FLAG_CUSTOM_CIPHER> is set for
+the cipher.
 
 EVP_CIPHER_CTX_reset() returns 1 for success and 0 for failure.