diff options
author | 2019-10-29 18:40:47 +0000 | |
---|---|---|
committer | 2019-10-29 18:40:47 +0000 | |
commit | 784c9bf0a6aabfd6fbbb61ed9aa2c832b67a3dce (patch) | |
tree | e1730fddb55b929d7a4e88b997769060bf142914 /lib/libcrypto | |
parent | merge documentation for several macros EVP_PKEY_CTX_*_rsa_oaep_*(3) (diff) | |
download | wireguard-openbsd-784c9bf0a6aabfd6fbbb61ed9aa2c832b67a3dce.tar.xz wireguard-openbsd-784c9bf0a6aabfd6fbbb61ed9aa2c832b67a3dce.zip |
In rsa.h rev. 1.41, jsing@ provided RSA_pkey_ctx_ctrl(3).
Write the documentation from scratch.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 b/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 index ca3321c3cb2..156e11edb9d 100644 --- a/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 +++ b/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.18 2019/10/29 18:22:21 schwarze Exp $ +.\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.19 2019/10/29 18:40:47 schwarze Exp $ .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 .\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 .\" @@ -59,6 +59,7 @@ .Nm EVP_PKEY_CTX_ctrl_str , .Nm EVP_PKEY_CTX_set_signature_md , .Nm EVP_PKEY_CTX_get_signature_md , +.Nm RSA_pkey_ctx_ctrl , .Nm EVP_PKEY_CTX_set_rsa_padding , .Nm EVP_PKEY_CTX_get_rsa_padding , .Nm EVP_PKEY_CTX_set_rsa_pss_saltlen , @@ -119,6 +120,14 @@ .Fc .In openssl/rsa.h .Ft int +.Fo RSA_pkey_ctx_ctrl +.Fa "EVP_PKEY_CTX *ctx" +.Fa "int optype" +.Fa "int cmd" +.Fa "int p1" +.Fa "void *p2" +.Fc +.Ft int .Fo EVP_PKEY_CTX_set_rsa_padding .Fa "EVP_PKEY_CTX *ctx" .Fa "int pad" @@ -324,6 +333,17 @@ macros set and get the message digest type used in a signature. They can be used with the RSA, DSA, and ECDSA algorithms. .Ss RSA parameters The +.Fn RSA_pkey_ctx_ctrl +function is a shallow wrapper around +.Fn EVP_PKEY_CTX_ctrl +which only succeeds if +.Fa ctx +matches either +.Dv EVP_PKEY_RSA +or +.Dv EVP_PKEY_RSA_PSS . +.Pp +The .Fn EVP_PKEY_CTX_set_rsa_padding macro sets the RSA padding mode for .Fa ctx . @@ -691,3 +711,8 @@ and .Fn EVP_PKEY_CTX_get0_rsa_oaep_label first appeared in OpenSSL 1.0.2 and have been available since .Ox 6.7 . +.Pp +The function +.Fn RSA_pkey_ctx_ctrl +first appeared in OpenSSL 1.1.1 and has been available since +.Ox 6.7 . |