summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2023-09-12 16:15:23 +0000
committerschwarze <>2023-09-12 16:15:23 +0000
commit003897167ecdeffbddede34cf22c43328f261be7 (patch)
tree20830a0a9a5ca623c0b6884405b8dca27ca2d5df /src/lib
parent75bca4a005736ae4002dab2255f87a1cd7821356 (diff)
downloadopenbsd-003897167ecdeffbddede34cf22c43328f261be7.tar.gz
openbsd-003897167ecdeffbddede34cf22c43328f261be7.tar.bz2
openbsd-003897167ecdeffbddede34cf22c43328f261be7.zip
document the four EVP_PKEY_OP_TYPE_* mask constants
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_CTX_get_operation.327
1 files changed, 23 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_CTX_get_operation.3 b/src/lib/libcrypto/man/EVP_PKEY_CTX_get_operation.3
index 9a9848f55e..2482c746d4 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_CTX_get_operation.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_CTX_get_operation.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_CTX_get_operation.3,v 1.2 2023/09/10 04:05:26 jsg Exp $ 1.\" $OpenBSD: EVP_PKEY_CTX_get_operation.3,v 1.3 2023/09/12 16:15:23 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2023 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2023 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: September 10 2023 $ 17.Dd $Mdocdate: September 12 2023 $
18.Dt EVP_PKEY_CTX_GET_OPERATION 3 18.Dt EVP_PKEY_CTX_GET_OPERATION 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -92,11 +92,30 @@ was freshly returned from
92or 92or
93.Xr EVP_PKEY_CTX_new_id 3 93.Xr EVP_PKEY_CTX_new_id 3
94and not yet initialized. 94and not yet initialized.
95.Pp
96The following masks are defined as the logical OR of two or more of the above
97.Dv EVP_PKEY_OP_*
98bits:
99.Pp
100.Bl -tag -width EVP_PKEY_OP_TYPE_NOGEN -compact
101.It Dv EVP_PKEY_OP_TYPE_CRYPT
102DECRYPT | ENCRYPT
103.It Dv EVP_PKEY_OP_TYPE_GEN
104KEYGEN | PARAMGEN
105.It Dv EVP_PKEY_OP_TYPE_NOGEN
106CRYPT | DERIVE | SIG
107.It Dv EVP_PKEY_OP_TYPE_SIG
108SIGN | SIGNCTX | VERIFY | VERIFYCTX | VERIFYRECOVER
109.El
95.Sh RETURN VALUES 110.Sh RETURN VALUES
96.Fn EVP_PKEY_CTX_get_operation 111.Fn EVP_PKEY_CTX_get_operation
97returns one of the 112returns one of the single-bit
98.Dv EVP_PKEY_OP_* 113.Dv EVP_PKEY_OP_*
99constants. 114constants or
115.Dv EVP_PKEY_OP_UNDEFINED
116if
117.Fa ctx
118is not initialized.
100.Pp 119.Pp
101.Fn EVP_PKEY_CTX_get0_pkey 120.Fn EVP_PKEY_CTX_get0_pkey
102returns an internal pointer to the 121returns an internal pointer to the