From: Simo Sorce Date: Tue, 15 Apr 2025 19:21:19 +0000 (-0400) Subject: Fix EVP_PKEY_verify man page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58dfbe34e1b43233bf37f1c2a47622c46532cedd;p=thirdparty%2Fopenssl.git Fix EVP_PKEY_verify man page Various functions were misnamed in the descriptions. Signed-off-by: Simo Sorce Reviewed-by: Viktor Dukhovni Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27342) --- diff --git a/doc/man3/EVP_PKEY_verify.pod b/doc/man3/EVP_PKEY_verify.pod index e5bd70a90d2..94d15a332a7 100644 --- a/doc/man3/EVP_PKEY_verify.pod +++ b/doc/man3/EVP_PKEY_verify.pod @@ -50,31 +50,31 @@ I for verifying an unlimited size message using the algorithm given by I and the key given through L or L. Passing the message is supported both in a one-shot fashion using -EVP_PKEY_verify(), and through the combination of EVP_PKEY_verify_update() and -EVP_PKEY_verify_final(). +EVP_PKEY_verify(), and through the combination of +EVP_PKEY_verify_message_update() and EVP_PKEY_verify_message_final(). This function enables using algorithms that can process input of arbitrary length, such as ED25519, RSA-SHA256 and similar. EVP_PKEY_CTX_set_signature() specifies the I bytes long signature -I to be verified against by EVP_PKEY_verify_final(). -It I be used together with EVP_PKEY_verify_update() and -EVP_PKEY_verify_final(). +I to be verified against by EVP_PKEY_verify_message_final(). +It I be used together with EVP_PKEY_verify_message_update() and +EVP_PKEY_verify_message_final(). See L below for a deeper explanation. -EVP_PKEY_verify_update() adds I bytes from I to the data to be -processed for verification. The signature algorithm specification and +EVP_PKEY_verify_message_update() adds I bytes from I to the data +to be processed for verification. The signature algorithm specification and implementation determine how the input bytes are processed and if there's a limit on the total size of the input. See L below for a deeper explanation. -EVP_PKEY_verify_final() verifies the processed data, given only I. +EVP_PKEY_verify_message_final() verifies the processed data, given only I. The signature to verify against must have been given with EVP_PKEY_CTX_set_signature(). EVP_PKEY_verify() is a one-shot function that performs the same thing as EVP_PKEY_CTX_set_signature() call with I and I as parameters, -followed by a single EVP_PKEY_verify_update() call with I and I, -followed by EVP_PKEY_verify_final() call. +followed by a single EVP_PKEY_verify_message_update() call with I and +I, followed by EVP_PKEY_verify_message_final() call. =head1 NOTES