From: Richard Levitte Date: Fri, 6 Mar 2020 13:55:49 +0000 (+0100) Subject: DOC: Extend the description of EVP_PKEY_CTX_new_from_name() X-Git-Tag: openssl-3.0.0-alpha1~71 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=ccb47dbf47b36da849301aae38c32ed019e75a21;ds=sidebyside DOC: Extend the description of EVP_PKEY_CTX_new_from_name() This adds text the should lead the user to documentation on different KEYMGMT implementations. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/11220) --- diff --git a/doc/man3/EVP_PKEY_CTX_new.pod b/doc/man3/EVP_PKEY_CTX_new.pod index 5f8a01242d..327d09f348 100644 --- a/doc/man3/EVP_PKEY_CTX_new.pod +++ b/doc/man3/EVP_PKEY_CTX_new.pod @@ -32,7 +32,8 @@ The EVP_PKEY_CTX_new_from_name() function allocates a public key algorithm context using the library context I (see L), the key type specified by I and the property query I. None of the arguments are duplicated, so they must remain unchanged for the -lifetime of the returned B or of any of its duplicates. +lifetime of the returned B or of any of its duplicates. Read +further about the possible names in L below. The EVP_PKEY_CTX_new_from_pkey() function allocates a public key algorithm context using the library context I (see L) and the @@ -52,16 +53,14 @@ If I is NULL, nothing is done. =head1 NOTES -=over 4 - -=item 1. +=head2 On B The B structure is an opaque public key algorithm context used by the OpenSSL high level public key API. Contexts B be shared between threads: that is it is not permissible to use the same context simultaneously in two threads. -=item 2. +=head2 On Key Types We mention "key type" in this manual, which is the same as "algorithm" in most cases, allowing either term to be used @@ -69,6 +68,29 @@ interchangeably. There are algorithms where the I and the I of the operations that use the keys are not the same, such as EC keys being used for ECDSA and ECDH operations. +Key types are given in two different manners: + +=over 4 + +=item Legacy NID or EVP_PKEY type + +This is the I used with EVP_PKEY_CTX_new_id(). + +These are B, B, B, +B, B, B, B, +B, and are used by legacy methods. + +=item Name strings + +This is the I used with EVP_PKEY_CTX_new_from_name(). + +These are names like "RSA", "DSA", and what's available depends on what +providers are currently accessible. + +The OpenSSL providers offer a set of key types available this way, please +see L and L and related +documentation for more information. + =back =head1 RETURN VALUES