From: Tomas Mraz Date: Wed, 30 Nov 2022 15:48:14 +0000 (+0100) Subject: Clarify the EVP_PKEY_decrypt manual page X-Git-Tag: openssl-3.2.0-alpha1~1638 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f48a978e5cce483eadfd0df20e34480f205511c;p=thirdparty%2Fopenssl.git Clarify the EVP_PKEY_decrypt manual page Fixes #19790 Reviewed-by: Hugo Landau Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19792) --- diff --git a/doc/man3/EVP_PKEY_decrypt.pod b/doc/man3/EVP_PKEY_decrypt.pod index b624600cd24..0cd1a6548d0 100644 --- a/doc/man3/EVP_PKEY_decrypt.pod +++ b/doc/man3/EVP_PKEY_decrypt.pod @@ -18,19 +18,21 @@ EVP_PKEY_decrypt - decrypt using a public key algorithm =head1 DESCRIPTION The EVP_PKEY_decrypt_init() function initializes a public key algorithm -context using key B for a decryption operation. +context using key I for a decryption operation. The EVP_PKEY_decrypt_init_ex() function initializes a public key algorithm -context using key B for a decryption operation and sets the -algorithm specific B. +context using key I for a decryption operation and sets the +algorithm specific I. The EVP_PKEY_decrypt() function performs a public key decryption operation -using B. The data to be decrypted is specified using the B and -B parameters. If B is B then the maximum size of the output -buffer is written to the B parameter. If B is not B then -before the call the B parameter should contain the length of the -B buffer, if the call is successful the decrypted data is written to -B and the amount of data written to B. +using I. The data to be decrypted is specified using the I and +I parameters. If I is NULL then the minimum required size of +the output buffer is written to the I<*outlen> parameter. + +If I is not NULL then before the call the I<*outlen> parameter must +contain the length of the I buffer. If the call is successful the +decrypted data is written to I and the amount of the decrypted data +written to I<*outlen>, otherwise an error is returned. =head1 NOTES