From bcf8d0e01b8f4702dc8ab607fe939efa154f38e3 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Sat, 21 Oct 2023 09:57:09 +0200 Subject: [PATCH] EVP_PKEY_get_size.pod and provider-keymgmt.pod: document their relation --- doc/man3/EVP_PKEY_get_size.pod | 4 ++++ doc/man7/provider-keymgmt.pod | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/doc/man3/EVP_PKEY_get_size.pod b/doc/man3/EVP_PKEY_get_size.pod index 37bb9bb4c45b6..44b91cb00eb54 100644 --- a/doc/man3/EVP_PKEY_get_size.pod +++ b/doc/man3/EVP_PKEY_get_size.pod @@ -22,6 +22,7 @@ EVP_PKEY_bits, EVP_PKEY_security_bits, EVP_PKEY_size EVP_PKEY_get_size() returns the maximum suitable size for the output buffers for almost all operations that can be done with I. +This corresponds to the provider parameter B. The primary documented use is with L and L, but it isn't limited there. The returned size is also large enough for the output buffer of L, @@ -38,9 +39,11 @@ receive that length), to avoid bugs. EVP_PKEY_get_bits() returns the cryptographic length of the cryptosystem to which the key in I belongs, in bits. Note that the definition of cryptographic length is specific to the key cryptosystem. +This length corresponds to the provider parameter B. EVP_PKEY_get_security_bits() returns the number of security bits of the given I, bits of security is defined in NIST SP800-57. +This corresponds to the provider parameter B. =head1 RETURN VALUES @@ -66,6 +69,7 @@ L. =head1 SEE ALSO +L, L, L, L, diff --git a/doc/man7/provider-keymgmt.pod b/doc/man7/provider-keymgmt.pod index d5c628a93d18e..f8d04bfd0b374 100644 --- a/doc/man7/provider-keymgmt.pod +++ b/doc/man7/provider-keymgmt.pod @@ -380,6 +380,9 @@ the result of asymmmetric encryption / decryption (I in L, a derived secret (I in L, and similar data). +Providers need to implement this parameter +in order to properly support various use cases such as CMS signing. + Because an EVP_KEYMGMT method is always tightly bound to another method (signature, asymmetric cipher, key exchange, ...) and must be of the same provider, this number only needs to be synchronised with the @@ -448,6 +451,9 @@ always return a constant L array. =head1 SEE ALSO +L, +L, +L, L, L, L, L, L, L, L,