summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2019-10-29 14:10:01 +0000
committerschwarze <>2019-10-29 14:10:01 +0000
commitdc59d5236638cb502c71674531e2bfbb2fdefab6 (patch)
tree8110e8cbd50bb7c64eaf4b3cb2c7ad4dc1f8e002 /src
parent3d88bbb6e3db8a06cc9a11539d625a1cb4283cc0 (diff)
downloadopenbsd-dc59d5236638cb502c71674531e2bfbb2fdefab6.tar.gz
openbsd-dc59d5236638cb502c71674531e2bfbb2fdefab6.tar.bz2
openbsd-dc59d5236638cb502c71674531e2bfbb2fdefab6.zip
list supported algorithm ids and clarify how the engine argument is used
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_CTX_new.360
1 files changed, 50 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_CTX_new.3 b/src/lib/libcrypto/man/EVP_PKEY_CTX_new.3
index e2f18ccbe8..507176f596 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_CTX_new.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_CTX_new.3
@@ -1,7 +1,24 @@
1.\" $OpenBSD: EVP_PKEY_CTX_new.3,v 1.8 2019/06/06 01:06:58 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_CTX_new.3,v 1.9 2019/10/29 14:10:01 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" full merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file is a derived work.
5.\" The changes are covered by the following Copyright and license:
6.\"
7.\" Copyright (c) 2019 Ingo Schwarze <schwarze@openbsd.org>
8.\"
9.\" Permission to use, copy, modify, and distribute this software for any
10.\" purpose with or without fee is hereby granted, provided that the above
11.\" copyright notice and this permission notice appear in all copies.
12.\"
13.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20.\"
21.\" The original file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2006, 2009, 2015 The OpenSSL Project. All rights reserved. 22.\" Copyright (c) 2006, 2009, 2015 The OpenSSL Project. All rights reserved.
6.\" 23.\"
7.\" Redistribution and use in source and binary forms, with or without 24.\" Redistribution and use in source and binary forms, with or without
@@ -48,7 +65,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 67.\"
51.Dd $Mdocdate: June 6 2019 $ 68.Dd $Mdocdate: October 29 2019 $
52.Dt EVP_PKEY_CTX_NEW 3 69.Dt EVP_PKEY_CTX_NEW 3
53.Os 70.Os
54.Sh NAME 71.Sh NAME
@@ -83,22 +100,45 @@ The
83function allocates a public key algorithm context using the algorithm 100function allocates a public key algorithm context using the algorithm
84specified in 101specified in
85.Fa pkey 102.Fa pkey
86and the 103and using
87.Vt ENGINE 104.Fa e
88.Fa e . 105unless it is
106.Dv NULL .
107If
108.Fa pkey
109is associated with an engine, that engine is used and
110.Fa e
111is ignored.
89.Pp 112.Pp
90The 113The
91.Fn EVP_PKEY_CTX_new_id 114.Fn EVP_PKEY_CTX_new_id
92function allocates a public key algorithm context using the algorithm 115function allocates a public key algorithm context using the algorithm
93specified by 116specified by
94.Fa id 117.Fa id
95and 118and using
96.Vt ENGINE 119.Fa e
97.Fa e . 120unless it is
121.Dv NULL .
98It is normally used when no 122It is normally used when no
99.Vt EVP_PKEY 123.Vt EVP_PKEY
100structure is associated with the operations, for example during 124structure is associated with the operations, for example during
101parameter generation of key generation for some algorithms. 125parameter generation of key generation for some algorithms.
126The following
127.Fa id
128constants are supported:
129.Dv EVP_PKEY_CMAC ,
130.Dv EVP_PKEY_DH ,
131.Dv EVP_PKEY_DSA ,
132.Dv EVP_PKEY_EC ,
133.Dv EVP_PKEY_GOSTIMIT ,
134.Dv EVP_PKEY_GOSTR01 ,
135.Dv EVP_PKEY_HMAC ,
136and
137.Dv EVP_PKEY_RSA .
138Application programs can define additional
139.Fa id
140values using
141.Xr EVP_PKEY_meth_new 3 .
102.Pp 142.Pp
103.Fn EVP_PKEY_CTX_dup 143.Fn EVP_PKEY_CTX_dup
104duplicates the context 144duplicates the context