]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clarify the EVP_PKEY_decrypt manual page
authorTomas Mraz <tomas@openssl.org>
Wed, 30 Nov 2022 15:48:14 +0000 (16:48 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 2 Dec 2022 12:08:57 +0000 (13:08 +0100)
Fixes #19790

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19792)

doc/man3/EVP_PKEY_decrypt.pod

index b624600cd240d5be2afa80d54e193e212fb2e11f..0cd1a6548d056105dd6fa1d860812c2cfcf0fa31 100644 (file)
@@ -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<pkey> for a decryption operation.
+context using key I<pkey> for a decryption operation.
 
 The EVP_PKEY_decrypt_init_ex() function initializes a public key algorithm
-context using key B<pkey> for a decryption operation and sets the
-algorithm specific B<params>.
+context using key I<pkey> for a decryption operation and sets the
+algorithm specific I<params>.
 
 The EVP_PKEY_decrypt() function performs a public key decryption operation
-using B<ctx>. The data to be decrypted is specified using the B<in> and
-B<inlen> parameters. If B<out> is B<NULL> then the maximum size of the output
-buffer is written to the B<outlen> parameter. If B<out> is not B<NULL> then
-before the call the B<outlen> parameter should contain the length of the
-B<out> buffer, if the call is successful the decrypted data is written to
-B<out> and the amount of data written to B<outlen>.
+using I<ctx>. The data to be decrypted is specified using the I<in> and
+I<inlen> parameters. If I<out> is NULL then the minimum required size of
+the output buffer is written to the I<*outlen> parameter.
+
+If I<out> is not NULL then before the call the I<*outlen> parameter must
+contain the length of the I<out> buffer. If the call is successful the
+decrypted data is written to I<out> and the amount of the decrypted data
+written to I<*outlen>, otherwise an error is returned.
 
 =head1 NOTES