diff options
author | schwarze <> | 2024-11-12 20:15:24 +0000 |
---|---|---|
committer | schwarze <> | 2024-11-12 20:15:24 +0000 |
commit | d2ed7b4e4d92926fea691e61cefc2508f2384bcf (patch) | |
tree | 37781155d0d9dac34020619c3473a09e31159ed7 /src/lib | |
parent | 2ed0e8a88a1bea303dbdb31fe5ab23e153c509ef (diff) | |
download | openbsd-d2ed7b4e4d92926fea691e61cefc2508f2384bcf.tar.gz openbsd-d2ed7b4e4d92926fea691e61cefc2508f2384bcf.tar.bz2 openbsd-d2ed7b4e4d92926fea691e61cefc2508f2384bcf.zip |
Link the new manual page EVP_PKEY_new_CMAC_key(3) to the build
and purge the superseded information from the algorithm-independent
page EVP_PKEY_new(3).
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_new.3 | 31 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 |
2 files changed, 5 insertions, 29 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_new.3 b/src/lib/libcrypto/man/EVP_PKEY_new.3 index ea22b5eb08..aae1ab3f91 100644 --- a/src/lib/libcrypto/man/EVP_PKEY_new.3 +++ b/src/lib/libcrypto/man/EVP_PKEY_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: EVP_PKEY_new.3,v 1.20 2024/08/24 09:15:36 tb Exp $ | 1 | .\" $OpenBSD: EVP_PKEY_new.3,v 1.21 2024/11/12 20:15:24 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100 | 2 | .\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -66,7 +66,7 @@ | |||
66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
68 | .\" | 68 | .\" |
69 | .Dd $Mdocdate: August 24 2024 $ | 69 | .Dd $Mdocdate: November 12 2024 $ |
70 | .Dt EVP_PKEY_NEW 3 | 70 | .Dt EVP_PKEY_NEW 3 |
71 | .Os | 71 | .Os |
72 | .Sh NAME | 72 | .Sh NAME |
@@ -75,7 +75,6 @@ | |||
75 | .Nm EVP_PKEY_free , | 75 | .Nm EVP_PKEY_free , |
76 | .Nm EVP_PKEY_new_raw_private_key , | 76 | .Nm EVP_PKEY_new_raw_private_key , |
77 | .Nm EVP_PKEY_new_raw_public_key , | 77 | .Nm EVP_PKEY_new_raw_public_key , |
78 | .Nm EVP_PKEY_new_CMAC_key , | ||
79 | .Nm EVP_PKEY_new_mac_key , | 78 | .Nm EVP_PKEY_new_mac_key , |
80 | .Nm EVP_PKEY_get_raw_private_key , | 79 | .Nm EVP_PKEY_get_raw_private_key , |
81 | .Nm EVP_PKEY_get_raw_public_key | 80 | .Nm EVP_PKEY_get_raw_public_key |
@@ -107,13 +106,6 @@ | |||
107 | .Fa "size_t rawlen" | 106 | .Fa "size_t rawlen" |
108 | .Fc | 107 | .Fc |
109 | .Ft EVP_PKEY * | 108 | .Ft EVP_PKEY * |
110 | .Fo EVP_PKEY_new_CMAC_key | ||
111 | .Fa "ENGINE *engine" | ||
112 | .Fa "const unsigned char *rawpriv" | ||
113 | .Fa "size_t rawlen" | ||
114 | .Fa "const EVP_CIPHER *cipher" | ||
115 | .Fc | ||
116 | .Ft EVP_PKEY * | ||
117 | .Fo EVP_PKEY_new_mac_key | 109 | .Fo EVP_PKEY_new_mac_key |
118 | .Fa "int type" | 110 | .Fa "int type" |
119 | .Fa "ENGINE *engine" | 111 | .Fa "ENGINE *engine" |
@@ -198,19 +190,6 @@ Algorithm types that support raw public keys are | |||
198 | and | 190 | and |
199 | .Dv EVP_PKEY_ED25519 . | 191 | .Dv EVP_PKEY_ED25519 . |
200 | .Pp | 192 | .Pp |
201 | .Fn EVP_PKEY_new_CMAC_key | ||
202 | works in the same way as | ||
203 | .Fn EVP_PKEY_new_raw_private_key | ||
204 | except that it only handles the | ||
205 | .Dv EVP_PKEY_CMAC | ||
206 | algorithm type. | ||
207 | The additional | ||
208 | .Fa cipher | ||
209 | argument specifies the cipher algorithm | ||
210 | to be used during the creation of the CMAC. | ||
211 | It should be a standard encryption only cipher. | ||
212 | For example, AEAD and XTS ciphers should not be used. | ||
213 | .Pp | ||
214 | .Fn EVP_PKEY_new_mac_key | 193 | .Fn EVP_PKEY_new_mac_key |
215 | is a deprecated function that works in the same way as | 194 | is a deprecated function that works in the same way as |
216 | .Fn EVP_PKEY_new_raw_private_key . | 195 | .Fn EVP_PKEY_new_raw_private_key . |
@@ -250,7 +229,6 @@ and | |||
250 | .Fn EVP_PKEY_new , | 229 | .Fn EVP_PKEY_new , |
251 | .Fn EVP_PKEY_new_raw_private_key , | 230 | .Fn EVP_PKEY_new_raw_private_key , |
252 | .Fn EVP_PKEY_new_raw_public_key , | 231 | .Fn EVP_PKEY_new_raw_public_key , |
253 | .Fn EVP_PKEY_new_CMAC_key , | ||
254 | and | 232 | and |
255 | .Fn EVP_PKEY_new_mac_key | 233 | .Fn EVP_PKEY_new_mac_key |
256 | return either the newly allocated | 234 | return either the newly allocated |
@@ -275,6 +253,7 @@ return 1 for success or 0 for failure. | |||
275 | .Xr EVP_PKEY_CTX_new 3 , | 253 | .Xr EVP_PKEY_CTX_new 3 , |
276 | .Xr EVP_PKEY_get_default_digest_nid 3 , | 254 | .Xr EVP_PKEY_get_default_digest_nid 3 , |
277 | .Xr EVP_PKEY_meth_new 3 , | 255 | .Xr EVP_PKEY_meth_new 3 , |
256 | .Xr EVP_PKEY_new_CMAC_key 3 , | ||
278 | .Xr EVP_PKEY_print_private 3 , | 257 | .Xr EVP_PKEY_print_private 3 , |
279 | .Xr EVP_PKEY_set1_RSA 3 , | 258 | .Xr EVP_PKEY_set1_RSA 3 , |
280 | .Xr EVP_PKEY_size 3 , | 259 | .Xr EVP_PKEY_size 3 , |
@@ -286,10 +265,6 @@ and | |||
286 | first appeared in SSLeay 0.6.0 and have been available since | 265 | first appeared in SSLeay 0.6.0 and have been available since |
287 | .Ox 2.4 . | 266 | .Ox 2.4 . |
288 | .Pp | 267 | .Pp |
289 | .Fn EVP_PKEY_new_CMAC_key | ||
290 | first appeared in OpenSSL 1.1.1 and has been available since | ||
291 | .Ox 6.9 . | ||
292 | .Pp | ||
293 | .Fn EVP_PKEY_new_mac_key | 268 | .Fn EVP_PKEY_new_mac_key |
294 | first appeared in OpenSSL 1.0.0 and has been available since | 269 | first appeared in OpenSSL 1.0.0 and has been available since |
295 | .Ox 4.9 . | 270 | .Ox 4.9 . |
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 1519b3daca..5d791d183e 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.295 2024/10/22 22:41:01 jsg Exp $ | 1 | # $OpenBSD: Makefile,v 1.296 2024/11/12 20:15:24 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -189,6 +189,7 @@ MAN= \ | |||
189 | EVP_PKEY_meth_get0_info.3 \ | 189 | EVP_PKEY_meth_get0_info.3 \ |
190 | EVP_PKEY_meth_new.3 \ | 190 | EVP_PKEY_meth_new.3 \ |
191 | EVP_PKEY_new.3 \ | 191 | EVP_PKEY_new.3 \ |
192 | EVP_PKEY_new_CMAC_key.3 \ | ||
192 | EVP_PKEY_print_private.3 \ | 193 | EVP_PKEY_print_private.3 \ |
193 | EVP_PKEY_set1_RSA.3 \ | 194 | EVP_PKEY_set1_RSA.3 \ |
194 | EVP_PKEY_sign.3 \ | 195 | EVP_PKEY_sign.3 \ |