diff options
author | schwarze <> | 2024-11-08 22:23:35 +0000 |
---|---|---|
committer | schwarze <> | 2024-11-08 22:23:35 +0000 |
commit | d0c0ceacf41c5d7d278724824d2b6fb5730c2201 (patch) | |
tree | 0d3c20fc4d228dfe84edecb7cdbbb3accc5b85f5 /src/lib | |
parent | 7ae287b389f7b4b66ed89fa379b4d295cdf76231 (diff) | |
download | openbsd-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.3 | 41 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_DigestVerifyInit.3 | 55 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_SignInit.3 | 24 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_VerifyInit.3 | 24 |
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 |
98 | to use the digest | 99 | to use the digest |
99 | .Fa type | 100 | .Fa type |
100 | and private key | 101 | and the private key |
101 | .Fa pkey . | 102 | .Fa pkey . |
103 | Before calling this function, obtain | ||
104 | .Fa ctx | ||
105 | from | ||
106 | .Xr EVP_MD_CTX_new 3 | ||
107 | or call | ||
108 | .Xr EVP_MD_CTX_reset 3 | ||
109 | on it. | ||
102 | The | 110 | The |
103 | .Fa ENGINE *engine | 111 | .Fa engine |
104 | argument is always ignored and passing | 112 | argument is always ignored and passing |
105 | .Dv NULL | 113 | .Dv NULL |
106 | is recommended. | 114 | is recommended. |
107 | .Fa ctx | 115 | .Pp |
108 | must be initialized with | ||
109 | .Xr EVP_MD_CTX_init 3 | ||
110 | before calling this function. | ||
111 | If | 116 | If |
112 | .Fa pctx | 117 | .Fa pctx |
113 | is not | 118 | is not |
114 | .Dv NULL , | 119 | .Dv NULL , |
115 | the | 120 | any pointer passed in as |
121 | .Pf * Fa pctx | ||
122 | is ignored and overwritten by an internal pointer to the | ||
116 | .Vt EVP_PKEY_CTX | 123 | .Vt EVP_PKEY_CTX |
117 | of the signing operation will be written to | 124 | used by the signing operation: |
118 | .Pf * Fa pctx : | ||
119 | this can be used to set alternative signing options. | 125 | this can be used to set alternative signing options. |
120 | Any existing value in | 126 | The returned |
121 | .Pf * Fa pctx | ||
122 | will be overwritten. | ||
123 | The | ||
124 | .Vt EVP_PKEY_CTX | 127 | .Vt EVP_PKEY_CTX |
125 | value returned must not be freed directly by the application. | 128 | must not be freed by the application. |
126 | It will be freed automatically when the | 129 | It is freed automatically when the |
127 | .Vt EVP_MD_CTX | 130 | .Vt EVP_MD_CTX |
128 | is freed. | 131 | is 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 | |||
93 | signatures. | 94 | signatures. |
94 | .Pp | 95 | .Pp |
95 | .Fn EVP_DigestVerifyInit | 96 | .Fn EVP_DigestVerifyInit |
96 | sets up verification context | 97 | sets up the verification context |
97 | .Fa ctx | 98 | .Fa ctx |
98 | to use digest | 99 | to use the digest |
99 | .Fa type | 100 | .Fa type |
100 | and public key | 101 | and the public key |
101 | .Fa pkey . | 102 | .Fa pkey . |
103 | Before calling this function, obtain | ||
102 | .Fa ctx | 104 | .Fa ctx |
103 | must be initialized with | 105 | from |
104 | .Xr EVP_MD_CTX_init 3 | 106 | .Xr EVP_MD_CTX_new 3 |
105 | before calling this function. | 107 | or call |
108 | .Xr EVP_MD_CTX_reset 3 | ||
109 | on it. | ||
110 | The | ||
111 | .Fa engine | ||
112 | argument is always ignored and passing | ||
113 | .Dv NULL | ||
114 | is recommended. | ||
115 | .Pp | ||
106 | If | 116 | If |
107 | .Fa pctx | 117 | .Fa pctx |
108 | is not | 118 | is not |
109 | .Dv NULL , | 119 | .Dv NULL , |
110 | the | 120 | any pointer passed in as |
121 | .Pf * Fa pctx | ||
122 | is ignored and overwritten by an internal pointer to the | ||
111 | .Vt EVP_PKEY_CTX | 123 | .Vt EVP_PKEY_CTX |
112 | of the verification operation will be written to | 124 | used by the verification operation: |
113 | .Pf * Fa pctx : | 125 | this can be used to set alternative signing options. |
114 | this can be used to set alternative verification options. | 126 | The returned |
115 | Any existing value in | ||
116 | .Pf * .Fa pctx | ||
117 | is overwritten. | ||
118 | The | ||
119 | .Vt EVP_PKEY_CTX | 127 | .Vt EVP_PKEY_CTX |
120 | value returned must not be freed directly by the application. | 128 | must not be freed by the application. |
121 | It will be freed automatically when the | 129 | It is freed automatically when the |
122 | .Vt EVP_MD_CTX | 130 | .Vt EVP_MD_CTX |
123 | is freed. | 131 | is freed. |
124 | The | ||
125 | .Fa ENGINE *engine | ||
126 | argument is always ignored and passing | ||
127 | .Dv NULL | ||
128 | is recommended. | ||
129 | .Pp | 132 | .Pp |
130 | .Fn EVP_DigestVerifyUpdate | 133 | .Fn EVP_DigestVerifyUpdate |
131 | hashes | 134 | hashes |
@@ -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 |
170 | The EVP interface to digital signatures should almost always be | 173 | The EVP interface to digital signatures should almost always be |
171 | used in preference to the low level interfaces. | 174 | used in preference to the low-level interfaces. |
172 | This is because the code then becomes transparent to the algorithm used | 175 | This is because the code then becomes transparent to the algorithm used |
173 | and much more flexible. | 176 | and 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 |
89 | The EVP signature routines are a high level interface to digital | 88 | The EVP signature routines are a high-level interface to digital |
90 | signatures. | 89 | signatures. |
91 | .Pp | 90 | .Pp |
92 | .Fn EVP_SignInit_ex | 91 | .Fn EVP_SignInit_ex |
93 | sets up a signing context | 92 | sets up the signing context |
94 | .Fa ctx | 93 | .Fa ctx |
95 | to use the digest | 94 | to use the digest |
96 | .Fa type . | 95 | .Fa type . |
96 | Before calling this function, obtain | ||
97 | .Fa ctx | 97 | .Fa ctx |
98 | must be initialized with | 98 | from |
99 | .Xr EVP_MD_CTX_init 3 | 99 | .Xr EVP_MD_CTX_new 3 |
100 | before calling this function. | 100 | or call |
101 | .Xr EVP_MD_CTX_reset 3 | ||
102 | on it. | ||
101 | The | 103 | The |
102 | .Fa ENGINE *engine | 104 | .Fa engine |
103 | argument is always ignored and passing | 105 | argument is always ignored and passing |
104 | .Dv NULL | 106 | .Dv NULL |
105 | is recommended. | 107 | is recommended. |
@@ -142,7 +144,7 @@ to use the default implementation of digest | |||
142 | .Fa type . | 144 | .Fa type . |
143 | .Pp | 145 | .Pp |
144 | The EVP interface to digital signatures should almost always be | 146 | The EVP interface to digital signatures should almost always be |
145 | used in preference to the low level interfaces. | 147 | used in preference to the low-level interfaces. |
146 | This is because the code then becomes transparent to the algorithm used | 148 | This is because the code then becomes transparent to the algorithm used |
147 | and much more flexible. | 149 | and 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 |
89 | The EVP signature verification routines are a high level interface to | 88 | The EVP signature verification routines are a high-level interface to |
90 | digital signatures. | 89 | digital signatures. |
91 | .Pp | 90 | .Pp |
92 | .Fn EVP_VerifyInit_ex | 91 | .Fn EVP_VerifyInit_ex |
93 | sets up a verification context | 92 | sets up the verification context |
94 | .Fa ctx | 93 | .Fa ctx |
95 | to use the digest | 94 | to use the digest |
96 | .Fa type . | 95 | .Fa type . |
96 | Before calling this function, obtain | ||
97 | .Fa ctx | 97 | .Fa ctx |
98 | must be initialized by calling | 98 | from |
99 | .Xr EVP_MD_CTX_init 3 | 99 | .Xr EVP_MD_CTX_new 3 |
100 | before calling this function. | 100 | or call |
101 | .Xr EVP_MD_CTX_reset 3 | ||
102 | on it. | ||
101 | The | 103 | The |
102 | .Fa ENGINE *engine | 104 | .Fa engine |
103 | argument is always ignored and passing | 105 | argument is always ignored and passing |
104 | .Dv NULL | 106 | .Dv NULL |
105 | is recommended. | 107 | is recommended. |
@@ -132,7 +134,7 @@ to use the default implementation of digest | |||
132 | .Fa type . | 134 | .Fa type . |
133 | .Pp | 135 | .Pp |
134 | The EVP interface to digital signatures should almost always be | 136 | The EVP interface to digital signatures should almost always be |
135 | used in preference to the low level interfaces. | 137 | used in preference to the low-level interfaces. |
136 | This is because the code then becomes transparent to the algorithm used | 138 | This is because the code then becomes transparent to the algorithm used |
137 | and much more flexible. | 139 | and much more flexible. |
138 | .Pp | 140 | .Pp |