summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_meth_new.3
diff options
context:
space:
mode:
authorschwarze <>2022-07-13 19:10:40 +0000
committerschwarze <>2022-07-13 19:10:40 +0000
commite95ee47017ce917a814d017943491a0500dafae6 (patch)
tree6828f8b4248b3717f04a897bfff52cc10c23f2cc /src/lib/libcrypto/man/EVP_PKEY_meth_new.3
parent91e9170fc3d4aa0ea177c939bf219641328a9a6a (diff)
downloadopenbsd-e95ee47017ce917a814d017943491a0500dafae6.tar.gz
openbsd-e95ee47017ce917a814d017943491a0500dafae6.tar.bz2
openbsd-e95ee47017ce917a814d017943491a0500dafae6.zip
Write documentation for EVP_PKEY_check(3), EVP_PKEY_public_check(3),
EVP_PKEY_param_check(3), and EVP_PKEY_security_bits(3) from scratch. Move the documentation of EVP_PKEY_size(3) and EVP_PKEY_bits(3) to the new manual page EVP_PKEY_size(3). Merge the documentation of the related function pointers from the OpenSSL 1.1.1 branch, which is still under a free license. OK tb@ on the new page EVP_PKEY_size(3).
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_meth_new.3')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_meth_new.348
1 files changed, 44 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_meth_new.3 b/src/lib/libcrypto/man/EVP_PKEY_meth_new.3
index 706824cd59..3d9d1ba5be 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_meth_new.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_meth_new.3
@@ -1,5 +1,5 @@
1.\" $OpenBSD: EVP_PKEY_meth_new.3,v 1.4 2019/06/06 01:06:58 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_meth_new.3,v 1.5 2022/07/13 19:10:40 schwarze Exp $
2.\" selective merge up to: OpenSSL 43f985fd Aug 21 11:47:17 2017 -0400 2.\" selective merge up to: OpenSSL 335a587b May 7 11:59:11 2019 +0200
3.\" 3.\"
4.\" This file was written by Paul Yang <yang.yang@baishancloud.com> 4.\" This file was written by Paul Yang <yang.yang@baishancloud.com>
5.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved. 5.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: June 6 2019 $ 51.Dd $Mdocdate: July 13 2022 $
52.Dt EVP_PKEY_METH_NEW 3 52.Dt EVP_PKEY_METH_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -70,7 +70,10 @@
70.Nm EVP_PKEY_meth_set_encrypt , 70.Nm EVP_PKEY_meth_set_encrypt ,
71.Nm EVP_PKEY_meth_set_decrypt , 71.Nm EVP_PKEY_meth_set_decrypt ,
72.Nm EVP_PKEY_meth_set_derive , 72.Nm EVP_PKEY_meth_set_derive ,
73.Nm EVP_PKEY_meth_set_ctrl 73.Nm EVP_PKEY_meth_set_ctrl ,
74.Nm EVP_PKEY_meth_set_check ,
75.Nm EVP_PKEY_meth_set_public_check ,
76.Nm EVP_PKEY_meth_set_param_check
74.Nd manipulate an EVP_PKEY_METHOD structure 77.Nd manipulate an EVP_PKEY_METHOD structure
75.Sh SYNOPSIS 78.Sh SYNOPSIS
76.In openssl/evp.h 79.In openssl/evp.h
@@ -184,6 +187,21 @@
184.Fa "int (*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)" 187.Fa "int (*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)"
185.Fa "int (*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value)" 188.Fa "int (*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value)"
186.Fc 189.Fc
190.Ft void
191.Fo EVP_PKEY_meth_set_check
192.Fa "EVP_PKEY_METHOD *pmeth"
193.Fa "int (*check)(EVP_PKEY *pkey)"
194.Fc
195.Ft void
196.Fo EVP_PKEY_meth_set_public_check
197.Fa "EVP_PKEY_METHOD *pmeth"
198.Fa "int (*public_check)(EVP_PKEY *pkey)"
199.Fc
200.Ft void
201.Fo EVP_PKEY_meth_set_param_check
202.Fa "EVP_PKEY_METHOD *pmeth"
203.Fa "int (*param_check)(EVP_PKEY *pkey)"
204.Fc
187.Sh DESCRIPTION 205.Sh DESCRIPTION
188The 206The
189.Vt EVP_PKEY_METHOD 207.Vt EVP_PKEY_METHOD
@@ -451,6 +469,21 @@ methods are used to adjust algorithm-specific settings.
451See 469See
452.Xr EVP_PKEY_CTX_ctrl 3 470.Xr EVP_PKEY_CTX_ctrl 3
453for details. 471for details.
472.Bd -unfilled
473.Ft int Fn (*check) "EVP_PKEY *pkey"
474.Ft int Fn (*public_check) "EVP_PKEY *pkey"
475.Ft int Fn (*param_check) "EVP_PKEY *pkey"
476.Ed
477These methods are used to validate a key pair, the public component,
478and the parameters for the given
479.Fa pkey ,
480respectively.
481They are called by
482.Xr EVP_PKEY_check 3 ,
483.Xr EVP_PKEY_public_check 3 ,
484and
485.Xr EVP_PKEY_param_check 3 ,
486respectively.
454.Ss Functions 487.Ss Functions
455.Fn EVP_PKEY_meth_new 488.Fn EVP_PKEY_meth_new
456creates a new 489creates a new
@@ -553,3 +586,10 @@ first appeared in OpenSSL 1.0.0 and have been available since
553.Fn EVP_PKEY_meth_copy 586.Fn EVP_PKEY_meth_copy
554first appeared in OpenSSL 1.0.1 and has been available since 587first appeared in OpenSSL 1.0.1 and has been available since
555.Ox 5.3 . 588.Ox 5.3 .
589.Pp
590.Fn EVP_PKEY_meth_set_check ,
591.Fn EVP_PKEY_meth_set_public_check ,
592and
593.Fn EVP_PKEY_meth_set_param_check
594first appeared in OpenSSL 1.1.1 and have been available since
595.Ox 7.1 .