From ac57336cd258e0432ffa485615d11c7c7ecfe81a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 3 Mar 2023 14:18:43 +0100 Subject: [PATCH] DOCS: provider-keymgmt(7) - params for EVP_PKEY_get_default_digest_{name,nid}() This describes them in detail in provider-keymgmt(7). Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20430) --- doc/man7/EVP_PKEY-EC.pod | 2 +- doc/man7/provider-keymgmt.pod | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/doc/man7/EVP_PKEY-EC.pod b/doc/man7/EVP_PKEY-EC.pod index 492d97702dc9d..a7254c573621f 100644 --- a/doc/man7/EVP_PKEY-EC.pod +++ b/doc/man7/EVP_PKEY-EC.pod @@ -142,7 +142,7 @@ Used for getting the EC public key X component. Used for getting the EC public key Y component. -=item (B) +=item "default-digest" (B) Getter that returns the default digest name. (Currently returns "SHA256" as of OpenSSL 3.0). diff --git a/doc/man7/provider-keymgmt.pod b/doc/man7/provider-keymgmt.pod index 430c2d465d6fc..0f692f6f62c17 100644 --- a/doc/man7/provider-keymgmt.pod +++ b/doc/man7/provider-keymgmt.pod @@ -390,6 +390,36 @@ dimensions handled in the rest of the same provider. The value should be the number of security bits of the given key. Bits of security is defined in SP800-57. +=item "mandatory-digest" (B) + +If there is a mandatory digest for performing a signature operation with +keys from this keymgmt, this parameter should get its name as value. + +When EVP_PKEY_get_default_digest_name() queries this parameter and it's +filled in by the implementation, its return value will be 2. + +If the keymgmt implementation fills in the value C<""> or C<"UNDEF">, +L will place the string C<"UNDEF"> into +its argument I. This signifies that no digest should be specified +with the corresponding signature operation. + +=item "default-digest" (B) + +If there is a default digest for performing a signature operation with +keys from this keymgmt, this parameter should get its name as value. + +When L queries this parameter and it's +filled in by the implementation, its return value will be 1. Note that if +B is responded to as well, +L ignores the response to this +parameter. + +If the keymgmt implementation fills in the value C<""> or C<"UNDEF">, +L will place the string C<"UNDEF"> into +its argument I. This signifies that no digest has to be specified +with the corresponding signature operation, but may be specified as an +option. + =back =head1 RETURN VALUES