diff options
author | schwarze <> | 2023-09-12 16:15:23 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-12 16:15:23 +0000 |
commit | 003897167ecdeffbddede34cf22c43328f261be7 (patch) | |
tree | 20830a0a9a5ca623c0b6884405b8dca27ca2d5df /src/lib | |
parent | 75bca4a005736ae4002dab2255f87a1cd7821356 (diff) | |
download | openbsd-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.3 | 27 |
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 | |||
92 | or | 92 | or |
93 | .Xr EVP_PKEY_CTX_new_id 3 | 93 | .Xr EVP_PKEY_CTX_new_id 3 |
94 | and not yet initialized. | 94 | and not yet initialized. |
95 | .Pp | ||
96 | The following masks are defined as the logical OR of two or more of the above | ||
97 | .Dv EVP_PKEY_OP_* | ||
98 | bits: | ||
99 | .Pp | ||
100 | .Bl -tag -width EVP_PKEY_OP_TYPE_NOGEN -compact | ||
101 | .It Dv EVP_PKEY_OP_TYPE_CRYPT | ||
102 | DECRYPT | ENCRYPT | ||
103 | .It Dv EVP_PKEY_OP_TYPE_GEN | ||
104 | KEYGEN | PARAMGEN | ||
105 | .It Dv EVP_PKEY_OP_TYPE_NOGEN | ||
106 | CRYPT | DERIVE | SIG | ||
107 | .It Dv EVP_PKEY_OP_TYPE_SIG | ||
108 | SIGN | 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 |
97 | returns one of the | 112 | returns one of the single-bit |
98 | .Dv EVP_PKEY_OP_* | 113 | .Dv EVP_PKEY_OP_* |
99 | constants. | 114 | constants or |
115 | .Dv EVP_PKEY_OP_UNDEFINED | ||
116 | if | ||
117 | .Fa ctx | ||
118 | is not initialized. | ||
100 | .Pp | 119 | .Pp |
101 | .Fn EVP_PKEY_CTX_get0_pkey | 120 | .Fn EVP_PKEY_CTX_get0_pkey |
102 | returns an internal pointer to the | 121 | returns an internal pointer to the |