summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2024-11-08 22:23:35 +0000
committerschwarze <>2024-11-08 22:23:35 +0000
commitd0c0ceacf41c5d7d278724824d2b6fb5730c2201 (patch)
tree0d3c20fc4d228dfe84edecb7cdbbb3accc5b85f5 /src/lib
parent7ae287b389f7b4b66ed89fa379b4d295cdf76231 (diff)
downloadopenbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.tar.gz
openbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.tar.bz2
openbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.zip
Weed out the last remaining refences to the obsolete
function EVP_MD_CTX_init(3) and talk about EVP_MD_CTX_new(3) instead. This is similar in spirit to OpenSSL commit 25191fff (Dec 1, 2015), but i'm also mentioning EVP_MD_CTX_reset(3), slightly reordering some sentences in a more systematic way, and improving some related wordings to be more precise and read better.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/EVP_DigestSignInit.341
-rw-r--r--src/lib/libcrypto/man/EVP_DigestVerifyInit.355
-rw-r--r--src/lib/libcrypto/man/EVP_SignInit.324
-rw-r--r--src/lib/libcrypto/man/EVP_VerifyInit.324
4 files changed, 77 insertions, 67 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestSignInit.3 b/src/lib/libcrypto/man/EVP_DigestSignInit.3
index 92b656a106..22a0676278 100644
--- a/src/lib/libcrypto/man/EVP_DigestSignInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestSignInit.3
@@ -1,8 +1,9 @@
1.\" $OpenBSD: EVP_DigestSignInit.3,v 1.13 2024/07/21 08:36:43 tb Exp $ 1.\" $OpenBSD: EVP_DigestSignInit.3,v 1.14 2024/11/08 22:23:35 schwarze Exp $
2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 2.\" full merge up to: OpenSSL 28428130 Apr 17 15:18:40 2018 +0200
3.\" selective merge up to: OpenSSL 6328d367 Jul 4 21:58:30 2020 +0200
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) 2006, 2009, 2015, 2016 The OpenSSL Project. 6.\" Copyright (c) 2006, 2009, 2015, 2016, 2017 The OpenSSL Project.
6.\" All rights reserved. 7.\" All rights reserved.
7.\" 8.\"
8.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
@@ -49,7 +50,7 @@
49.\" 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
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 52.\"
52.Dd $Mdocdate: July 21 2024 $ 53.Dd $Mdocdate: November 8 2024 $
53.Dt EVP_DIGESTSIGNINIT 3 54.Dt EVP_DIGESTSIGNINIT 3
54.Os 55.Os
55.Sh NAME 56.Sh NAME
@@ -97,33 +98,35 @@ sets up the signing context
97.Fa ctx 98.Fa ctx
98to use the digest 99to use the digest
99.Fa type 100.Fa type
100and private key 101and the private key
101.Fa pkey . 102.Fa pkey .
103Before calling this function, obtain
104.Fa ctx
105from
106.Xr EVP_MD_CTX_new 3
107or call
108.Xr EVP_MD_CTX_reset 3
109on it.
102The 110The
103.Fa ENGINE *engine 111.Fa engine
104argument is always ignored and passing 112argument is always ignored and passing
105.Dv NULL 113.Dv NULL
106is recommended. 114is recommended.
107.Fa ctx 115.Pp
108must be initialized with
109.Xr EVP_MD_CTX_init 3
110before calling this function.
111If 116If
112.Fa pctx 117.Fa pctx
113is not 118is not
114.Dv NULL , 119.Dv NULL ,
115the 120any pointer passed in as
121.Pf * Fa pctx
122is ignored and overwritten by an internal pointer to the
116.Vt EVP_PKEY_CTX 123.Vt EVP_PKEY_CTX
117of the signing operation will be written to 124used by the signing operation:
118.Pf * Fa pctx :
119this can be used to set alternative signing options. 125this can be used to set alternative signing options.
120Any existing value in 126The returned
121.Pf * Fa pctx
122will be overwritten.
123The
124.Vt EVP_PKEY_CTX 127.Vt EVP_PKEY_CTX
125value returned must not be freed directly by the application. 128must not be freed by the application.
126It will be freed automatically when the 129It is freed automatically when the
127.Vt EVP_MD_CTX 130.Vt EVP_MD_CTX
128is freed. 131is freed.
129.Pp 132.Pp
diff --git a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
index b3286bf201..7ecd7e94e3 100644
--- a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
@@ -1,8 +1,9 @@
1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.15 2024/07/21 08:36:43 tb Exp $ 1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.16 2024/11/08 22:23:35 schwarze Exp $
2.\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 2.\" full merge up to OpenSSL f097e875 Aug 23 11:37:22 2018 +0100
3.\" selective merge up to 24a535ea Sep 22 13:14:20 2020 +0100
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) 2006, 2009, 2014, 2015, 2016 The OpenSSL Project. 6.\" Copyright (c) 2006, 2009, 2014, 2015, 2016, 2017 The OpenSSL Project.
6.\" All rights reserved. 7.\" All rights reserved.
7.\" 8.\"
8.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
@@ -49,7 +50,7 @@
49.\" 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
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 52.\"
52.Dd $Mdocdate: July 21 2024 $ 53.Dd $Mdocdate: November 8 2024 $
53.Dt EVP_DIGESTVERIFYINIT 3 54.Dt EVP_DIGESTVERIFYINIT 3
54.Os 55.Os
55.Sh NAME 56.Sh NAME
@@ -93,39 +94,41 @@ The EVP signature routines are a high-level interface to digital
93signatures. 94signatures.
94.Pp 95.Pp
95.Fn EVP_DigestVerifyInit 96.Fn EVP_DigestVerifyInit
96sets up verification context 97sets up the verification context
97.Fa ctx 98.Fa ctx
98to use digest 99to use the digest
99.Fa type 100.Fa type
100and public key 101and the public key
101.Fa pkey . 102.Fa pkey .
103Before calling this function, obtain
102.Fa ctx 104.Fa ctx
103must be initialized with 105from
104.Xr EVP_MD_CTX_init 3 106.Xr EVP_MD_CTX_new 3
105before calling this function. 107or call
108.Xr EVP_MD_CTX_reset 3
109on it.
110The
111.Fa engine
112argument is always ignored and passing
113.Dv NULL
114is recommended.
115.Pp
106If 116If
107.Fa pctx 117.Fa pctx
108is not 118is not
109.Dv NULL , 119.Dv NULL ,
110the 120any pointer passed in as
121.Pf * Fa pctx
122is ignored and overwritten by an internal pointer to the
111.Vt EVP_PKEY_CTX 123.Vt EVP_PKEY_CTX
112of the verification operation will be written to 124used by the verification operation:
113.Pf * Fa pctx : 125this can be used to set alternative signing options.
114this can be used to set alternative verification options. 126The returned
115Any existing value in
116.Pf * .Fa pctx
117is overwritten.
118The
119.Vt EVP_PKEY_CTX 127.Vt EVP_PKEY_CTX
120value returned must not be freed directly by the application. 128must not be freed by the application.
121It will be freed automatically when the 129It is freed automatically when the
122.Vt EVP_MD_CTX 130.Vt EVP_MD_CTX
123is freed. 131is freed.
124The
125.Fa ENGINE *engine
126argument is always ignored and passing
127.Dv NULL
128is recommended.
129.Pp 132.Pp
130.Fn EVP_DigestVerifyUpdate 133.Fn EVP_DigestVerifyUpdate
131hashes 134hashes
@@ -168,7 +171,7 @@ and
168.\" it is the only way to verify data. 171.\" it is the only way to verify data.
169.Pp 172.Pp
170The EVP interface to digital signatures should almost always be 173The EVP interface to digital signatures should almost always be
171used in preference to the low level interfaces. 174used in preference to the low-level interfaces.
172This is because the code then becomes transparent to the algorithm used 175This is because the code then becomes transparent to the algorithm used
173and much more flexible. 176and much more flexible.
174.Pp 177.Pp
diff --git a/src/lib/libcrypto/man/EVP_SignInit.3 b/src/lib/libcrypto/man/EVP_SignInit.3
index 6064bc7940..9a6c743876 100644
--- a/src/lib/libcrypto/man/EVP_SignInit.3
+++ b/src/lib/libcrypto/man/EVP_SignInit.3
@@ -1,6 +1,5 @@
1.\" $OpenBSD: EVP_SignInit.3,v 1.19 2024/07/21 09:24:07 tb Exp $ 1.\" $OpenBSD: EVP_SignInit.3,v 1.20 2024/11/08 22:23:35 schwarze Exp $
2.\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: OpenSSL 6328d367 Jul 4 21:58:30 2020 +0200
3.\" selective merge up to: OpenSSL 79b49fb0 Mar 20 10:03:10 2018 +1000
4.\" 3.\"
5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
6.\" Copyright (c) 2000-2002, 2005, 2006, 2014-2016 The OpenSSL Project. 5.\" Copyright (c) 2000-2002, 2005, 2006, 2014-2016 The OpenSSL Project.
@@ -50,7 +49,7 @@
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\" 51.\"
53.Dd $Mdocdate: July 21 2024 $ 52.Dd $Mdocdate: November 8 2024 $
54.Dt EVP_SIGNINIT 3 53.Dt EVP_SIGNINIT 3
55.Os 54.Os
56.Sh NAME 55.Sh NAME
@@ -86,20 +85,23 @@
86.Fa "const EVP_MD *type" 85.Fa "const EVP_MD *type"
87.Fc 86.Fc
88.Sh DESCRIPTION 87.Sh DESCRIPTION
89The EVP signature routines are a high level interface to digital 88The EVP signature routines are a high-level interface to digital
90signatures. 89signatures.
91.Pp 90.Pp
92.Fn EVP_SignInit_ex 91.Fn EVP_SignInit_ex
93sets up a signing context 92sets up the signing context
94.Fa ctx 93.Fa ctx
95to use the digest 94to use the digest
96.Fa type . 95.Fa type .
96Before calling this function, obtain
97.Fa ctx 97.Fa ctx
98must be initialized with 98from
99.Xr EVP_MD_CTX_init 3 99.Xr EVP_MD_CTX_new 3
100before calling this function. 100or call
101.Xr EVP_MD_CTX_reset 3
102on it.
101The 103The
102.Fa ENGINE *engine 104.Fa engine
103argument is always ignored and passing 105argument is always ignored and passing
104.Dv NULL 106.Dv NULL
105is recommended. 107is recommended.
@@ -142,7 +144,7 @@ to use the default implementation of digest
142.Fa type . 144.Fa type .
143.Pp 145.Pp
144The EVP interface to digital signatures should almost always be 146The EVP interface to digital signatures should almost always be
145used in preference to the low level interfaces. 147used in preference to the low-level interfaces.
146This is because the code then becomes transparent to the algorithm used 148This is because the code then becomes transparent to the algorithm used
147and much more flexible. 149and much more flexible.
148.Pp 150.Pp
diff --git a/src/lib/libcrypto/man/EVP_VerifyInit.3 b/src/lib/libcrypto/man/EVP_VerifyInit.3
index dfebe8f2bf..0baadfb9fb 100644
--- a/src/lib/libcrypto/man/EVP_VerifyInit.3
+++ b/src/lib/libcrypto/man/EVP_VerifyInit.3
@@ -1,6 +1,5 @@
1.\" $OpenBSD: EVP_VerifyInit.3,v 1.12 2024/07/21 08:36:43 tb Exp $ 1.\" $OpenBSD: EVP_VerifyInit.3,v 1.13 2024/11/08 22:23:35 schwarze Exp $
2.\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
3.\" selective merge up to: OpenSSL 79b49fb0 Mar 20 10:03:10 2018 +1000
4.\" 3.\"
5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
6.\" Copyright (c) 2000, 2001, 2006, 2016 The OpenSSL Project. 5.\" Copyright (c) 2000, 2001, 2006, 2016 The OpenSSL Project.
@@ -50,7 +49,7 @@
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\" 51.\"
53.Dd $Mdocdate: July 21 2024 $ 52.Dd $Mdocdate: November 8 2024 $
54.Dt EVP_VERIFYINIT 3 53.Dt EVP_VERIFYINIT 3
55.Os 54.Os
56.Sh NAME 55.Sh NAME
@@ -86,20 +85,23 @@
86.Fa "const EVP_MD *type" 85.Fa "const EVP_MD *type"
87.Fc 86.Fc
88.Sh DESCRIPTION 87.Sh DESCRIPTION
89The EVP signature verification routines are a high level interface to 88The EVP signature verification routines are a high-level interface to
90digital signatures. 89digital signatures.
91.Pp 90.Pp
92.Fn EVP_VerifyInit_ex 91.Fn EVP_VerifyInit_ex
93sets up a verification context 92sets up the verification context
94.Fa ctx 93.Fa ctx
95to use the digest 94to use the digest
96.Fa type . 95.Fa type .
96Before calling this function, obtain
97.Fa ctx 97.Fa ctx
98must be initialized by calling 98from
99.Xr EVP_MD_CTX_init 3 99.Xr EVP_MD_CTX_new 3
100before calling this function. 100or call
101.Xr EVP_MD_CTX_reset 3
102on it.
101The 103The
102.Fa ENGINE *engine 104.Fa engine
103argument is always ignored and passing 105argument is always ignored and passing
104.Dv NULL 106.Dv NULL
105is recommended. 107is recommended.
@@ -132,7 +134,7 @@ to use the default implementation of digest
132.Fa type . 134.Fa type .
133.Pp 135.Pp
134The EVP interface to digital signatures should almost always be 136The EVP interface to digital signatures should almost always be
135used in preference to the low level interfaces. 137used in preference to the low-level interfaces.
136This is because the code then becomes transparent to the algorithm used 138This is because the code then becomes transparent to the algorithm used
137and much more flexible. 139and much more flexible.
138.Pp 140.Pp