Commit b2162f9635 for openssl.org
commit b2162f96355d26b11359958c24fe5885996fb78d
Author: Kit Dallege <xaum.io@gmail.com>
Date: Thu Jul 23 12:25:18 2026 +0200
doc: add reference to how to list EC curve names
EVP_PKEY_keygen() and the related keygen helpers take an EC curve name
as a string parameter, but the page did not point to any way of
discovering the accepted names. Add a reference to
EC_get_builtin_curves(3), which lists the built-in curve NIDs, and
OSSL_EC_curve_nid2name(3), which converts a NID to the name string
accepted by the keygen functions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Assisted-by: Claude:claude-opus-4-8
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Merge-date: Thu Sep 17 13:45:12 2026
Merged-from: https://github.com/openssl/openssl/pull/29912
diff --git a/doc/man3/EVP_PKEY_keygen.pod b/doc/man3/EVP_PKEY_keygen.pod
index 71daed31c0..0a3b31e678 100644
--- a/doc/man3/EVP_PKEY_keygen.pod
+++ b/doc/man3/EVP_PKEY_keygen.pod
@@ -108,6 +108,9 @@ If I<type> is C<RSA>,
a B<size_t> parameter must be given to specify the size of the RSA key.
If I<type> is C<EC>,
a string parameter must be given to specify the name of the EC curve.
+The list of built-in curves can be obtained programmatically using
+L<EC_get_builtin_curves(3)>, and their names can be retrieved using
+L<OSSL_EC_curve_nid2name(3)>.
If I<type> is:
C<ED25519>,
C<ED448>,