summaryrefslogtreecommitdiffstats
path: root/doc/man7/X25519.pod
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-06-20 16:32:44 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-06-21 14:11:01 +0100
commitd2916a5b29b3ef83126cfbc7be5c16e0c3c9a521 (patch)
treeac4f6dd7aefa296e3913c776cd938181b6a5fa7d /doc/man7/X25519.pod
parent29b0cab0174e1c1d02e549c0aaa2b08ab3051bd2 (diff)
Use EVP_PKEY_X25519, EVP_PKEY_ED25519 instead of NIDs where appropriate.
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3585)
Diffstat (limited to 'doc/man7/X25519.pod')
-rw-r--r--doc/man7/X25519.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/man7/X25519.pod b/doc/man7/X25519.pod
index 61c9047bf6..96522c5054 100644
--- a/doc/man7/X25519.pod
+++ b/doc/man7/X25519.pod
@@ -19,7 +19,7 @@ performing key derivation.
A context for the B<X25519> algorithm can be obtained by calling:
- EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(NID_X25519, NULL);
+ EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_X25519, NULL);
=head1 EXAMPLE
@@ -30,7 +30,7 @@ output in PEM format:
#include <openssl/pem.h>
...
EVP_PKEY *pkey = NULL;
- EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(NID_X25519, NULL);
+ EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_X25519, NULL);
EVP_PKEY_keygen_init(pctx);
EVP_PKEY_keygen(pctx, &pkey);
EVP_PKEY_CTX_free(pctx);