diff options
author | schwarze <> | 2023-09-13 13:32:01 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-13 13:32:01 +0000 |
commit | 624522000820b1abd086f2a01639127ab9186e5e (patch) | |
tree | b4a78b10be50f81b9dde6fffccab5d72f0234c9d /src | |
parent | 2e2601748c263a04a5c844df5496cb606fd382a1 (diff) | |
download | openbsd-624522000820b1abd086f2a01639127ab9186e5e.tar.gz openbsd-624522000820b1abd086f2a01639127ab9186e5e.tar.bz2 openbsd-624522000820b1abd086f2a01639127ab9186e5e.zip |
document the EVP_PKEY_CTRL_MD and EVP_PKEY_CTRL_GET_MD command constants
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 b/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 index 7714cb0558..f07d02c825 100644 --- a/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 +++ b/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 | |||
@@ -1,9 +1,26 @@ | |||
1 | .\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.22 2019/11/01 13:53:25 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.23 2023/09/13 13:32:01 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
3 | .\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 |
4 | .\" Parts were split out into RSA_pkey_ctx_ctrl(3). | 4 | .\" Parts were split out into RSA_pkey_ctx_ctrl(3). |
5 | .\" | 5 | .\" |
6 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org> | 6 | .\" This file is a derived work. |
7 | .\" The changes are covered by the following Copyright and license: | ||
8 | .\" | ||
9 | .\" Copyright (c) 2019, 2023 Ingo Schwarze <schwarze@openbsd.org> | ||
10 | .\" | ||
11 | .\" Permission to use, copy, modify, and distribute this software for any | ||
12 | .\" purpose with or without fee is hereby granted, provided that the above | ||
13 | .\" copyright notice and this permission notice appear in all copies. | ||
14 | .\" | ||
15 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
16 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
17 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
18 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
19 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
20 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
21 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
22 | .\" | ||
23 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org> | ||
7 | .\" and Antoine Salon <asalon@vmware.com>. | 24 | .\" and Antoine Salon <asalon@vmware.com>. |
8 | .\" Copyright (c) 2006, 2009, 2013, 2014, 2015, 2018 The OpenSSL Project. | 25 | .\" Copyright (c) 2006, 2009, 2013, 2014, 2015, 2018 The OpenSSL Project. |
9 | .\" All rights reserved. | 26 | .\" All rights reserved. |
@@ -52,7 +69,7 @@ | |||
52 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 69 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
53 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 70 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
54 | .\" | 71 | .\" |
55 | .Dd $Mdocdate: November 1 2019 $ | 72 | .Dd $Mdocdate: September 13 2023 $ |
56 | .Dt EVP_PKEY_CTX_CTRL 3 | 73 | .Dt EVP_PKEY_CTX_CTRL 3 |
57 | .Os | 74 | .Os |
58 | .Sh NAME | 75 | .Sh NAME |
@@ -254,6 +271,20 @@ If the key is of the type | |||
254 | .Dv EVP_PKEY_RSA_PSS | 271 | .Dv EVP_PKEY_RSA_PSS |
255 | and has usage restrictions, an error occurs if an attempt is made | 272 | and has usage restrictions, an error occurs if an attempt is made |
256 | to set the digest to anything other than the restricted value. | 273 | to set the digest to anything other than the restricted value. |
274 | .Pp | ||
275 | These two macros expand to | ||
276 | .Fn EVP_PKEY_CTX_ctrl | ||
277 | with an | ||
278 | .Fa optype | ||
279 | of | ||
280 | .Dv EVP_PKEY_OP_TYPE_SIG | ||
281 | and the following command arguments: | ||
282 | .Pp | ||
283 | .Bl -column -compact EVP_PKEY_CTRL_GET_MD EVP_PKEY_CTX_get_signature_md() | ||
284 | .It Fa cmd No constant Ta corresponding macro | ||
285 | .It Dv EVP_PKEY_CTRL_MD Ta Fn EVP_PKEY_CTX_set_signature_md | ||
286 | .It Dv EVP_PKEY_CTRL_GET_MD Ta Fn EVP_PKEY_CTX_get_signature_md | ||
287 | .El | ||
257 | .Ss DSA parameters | 288 | .Ss DSA parameters |
258 | The macro | 289 | The macro |
259 | .Fn EVP_PKEY_CTX_set_dsa_paramgen_bits | 290 | .Fn EVP_PKEY_CTX_set_dsa_paramgen_bits |