summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2018-03-30 01:03:51 +0000
committerschwarze <>2018-03-30 01:03:51 +0000
commite3cee261c8e7d1ed7be93b9caaa2c5f42a8fffd1 (patch)
treeb6dda1a576455c24899ac37a4c539d4b2b6c19c1
parent37eef541594f7b807ff140229f7a4e912746d833 (diff)
downloadopenbsd-e3cee261c8e7d1ed7be93b9caaa2c5f42a8fffd1.tar.gz
openbsd-e3cee261c8e7d1ed7be93b9caaa2c5f42a8fffd1.tar.bz2
openbsd-e3cee261c8e7d1ed7be93b9caaa2c5f42a8fffd1.zip
include more information about how to create keys;
from Matt Caswell <matt at openssl dot org> via OpenSSL commit f929439f Mar 15 12:19:16 2018 +0000
-rw-r--r--src/lib/libcrypto/man/X25519.325
1 files changed, 19 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/X25519.3 b/src/lib/libcrypto/man/X25519.3
index 3d8ccb8fcd..6292d33ff5 100644
--- a/src/lib/libcrypto/man/X25519.3
+++ b/src/lib/libcrypto/man/X25519.3
@@ -1,8 +1,10 @@
1.\" $OpenBSD: X25519.3,v 1.1 2017/04/10 17:45:06 schwarze Exp $ 1.\" $OpenBSD: X25519.3,v 1.2 2018/03/30 01:03:51 schwarze Exp $
2.\" OpenSSL X25519.pod 69687aa8 Mar 28 23:57:28 2017 +0200 2.\" full merge up to: OpenSSL man7/X25519 69687aa8 Mar 28 23:57:28 2017 +0200
3.\" selective merge up to: OpenSSL f929439f Mar 15 12:19:16 2018 +0000
3.\" 4.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>
5.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved. 6.\" and Matt Caswell <matt@openssl.org>.
7.\" Copyright (c) 2017, 2018 The OpenSSL Project. All rights reserved.
6.\" 8.\"
7.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
@@ -48,7 +50,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 52.\"
51.Dd $Mdocdate: April 10 2017 $ 53.Dd $Mdocdate: March 30 2018 $
52.Dt X25519 3 54.Dt X25519 3
53.Os 55.Os
54.Sh NAME 56.Sh NAME
@@ -73,6 +75,16 @@ A context for the
73algorithm can be obtained by calling: 75algorithm can be obtained by calling:
74.Pp 76.Pp
75.Dl EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(NID_X25519, NULL); 77.Dl EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(NID_X25519, NULL);
78.Pp
79X25519 private keys can be loaded from a PKCS#8 private key file using
80.Xr PEM_read_bio_PrivateKey 3
81or similar functions.
82Setting a private key also sets the associated public key.
83.Pp
84X25519 public keys can be loaded from a SubjectPublicKeyInfo
85structure in a PEM file using
86.Xr PEM_read_bio_PUBKEY 3
87or similar functions.
76.Sh EXAMPLES 88.Sh EXAMPLES
77Generate an 89Generate an
78.Nm 90.Nm
@@ -96,4 +108,5 @@ can be used with
96.Sh SEE ALSO 108.Sh SEE ALSO
97.Xr EVP_PKEY_CTX_new 3 , 109.Xr EVP_PKEY_CTX_new 3 ,
98.Xr EVP_PKEY_derive 3 , 110.Xr EVP_PKEY_derive 3 ,
99.Xr EVP_PKEY_keygen 3 111.Xr EVP_PKEY_keygen 3 ,
112.Xr PEM_read_bio_PrivateKey 3