From 82dd65a2a74c151cf62723609510d83d32c83a52 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 5 Mar 2018 19:16:35 +0000 Subject: [PATCH] Expand the 25519/448 overview man pages Include more information about how to create keys for these algorithms. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/5520) --- doc/man7/Ed25519.pod | 10 ++++++++++ doc/man7/X25519.pod | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/doc/man7/Ed25519.pod b/doc/man7/Ed25519.pod index da6cbc009c..f2f6fb2a32 100644 --- a/doc/man7/Ed25519.pod +++ b/doc/man7/Ed25519.pod @@ -39,6 +39,16 @@ For the B algorithm a context can be obtained by calling: EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED448, NULL); +Ed25519 or Ed448 private keys can be set directly using +L or loaded from a PKCS#8 private key file using +L (or similar function). Completely new keys can +also be generated (see the example below). Setting a private key also sets the +associated public key. + +Ed25519 or Ed448 public keys can be set directly using +L or loaded from a SubjectPublicKeyInfo structure +in a PEM file using L (or similar function). + =head1 EXAMPLE This example generates an B private key and writes it to standard diff --git a/doc/man7/X25519.pod b/doc/man7/X25519.pod index 69ab0b4a3d..f1a9c4928e 100644 --- a/doc/man7/X25519.pod +++ b/doc/man7/X25519.pod @@ -27,6 +27,16 @@ For the B algorithm a context can be obtained by calling: EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_X448, NULL); +X25519 or X448 private keys can be set directly using +L or loaded from a PKCS#8 private key file using +L (or similar function). Completely new keys can +also be generated (see the example below). Setting a private key also sets the +associated public key. + +X25519 or X448 public keys can be set directly using +L or loaded from a SubjectPublicKeyInfo structure +in a PEM file using L (or similar function). + =head1 EXAMPLE This example generates an B private key and writes it to standard -- 2.34.1