summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-05-05 12:22:21 +0000
committertb <>2023-05-05 12:22:21 +0000
commit37431414f8c8dcf57641bddce2901d359d6a1834 (patch)
tree651c71e273e6332307771ad32abfaa5bbfee4a91 /src
parentcbb774df47617a348f8854e2c7c75251e41333d4 (diff)
downloadopenbsd-37431414f8c8dcf57641bddce2901d359d6a1834.tar.gz
openbsd-37431414f8c8dcf57641bddce2901d359d6a1834.tar.bz2
openbsd-37431414f8c8dcf57641bddce2901d359d6a1834.zip
Reinstate documentation of RSA_X931_PADDING
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.313
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3 b/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3
index d6fcf1a8c1..cf16977e74 100644
--- a/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3
+++ b/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: RSA_pkey_ctx_ctrl.3,v 1.6 2023/04/16 23:19:28 tb Exp $ 1.\" $OpenBSD: RSA_pkey_ctx_ctrl.3,v 1.7 2023/05/05 12:22:21 tb Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL man3/EVP_PKEY_CTX_ctrl.pod 99d63d46 Oct 26 13:56:48 2016 -0400 3.\" OpenSSL man3/EVP_PKEY_CTX_ctrl.pod 99d63d46 Oct 26 13:56:48 2016 -0400
4.\" OpenSSL man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod 4.\" OpenSSL man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod
@@ -55,7 +55,7 @@
55.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 55.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
56.\" OF THE POSSIBILITY OF SUCH DAMAGE. 56.\" OF THE POSSIBILITY OF SUCH DAMAGE.
57.\" 57.\"
58.Dd $Mdocdate: April 16 2023 $ 58.Dd $Mdocdate: May 5 2023 $
59.Dt RSA_PKEY_CTX_CTRL 3 59.Dt RSA_PKEY_CTX_CTRL 3
60.Os 60.Os
61.Sh NAME 61.Sh NAME
@@ -189,15 +189,12 @@ for PKCS#1 padding,
189for no padding, 189for no padding,
190.Dv RSA_PKCS1_OAEP_PADDING 190.Dv RSA_PKCS1_OAEP_PADDING
191for OAEP padding (encrypt and decrypt only), 191for OAEP padding (encrypt and decrypt only),
192and 192.Dv RSA_X931_PADDING
193for X9.31 padding (signature operations only) and
193.Dv RSA_PKCS1_PSS_PADDING 194.Dv RSA_PKCS1_PSS_PADDING
194(sign and verify only). 195(sign and verify only).
195Only the last one can be used with keys of the type 196Only the last one can be used with keys of the type
196.Dv EVP_PKEY_RSA_PSS . 197.Dv EVP_PKEY_RSA_PSS .
197X9.31 padding mode is unsupported.
198.Dv RSA_X931_PADDING
199is provided for backward compatibility with some existing
200application software.
201.Pp 198.Pp
202Two RSA padding modes behave differently if 199Two RSA padding modes behave differently if
203.Xr EVP_PKEY_CTX_set_signature_md 3 200.Xr EVP_PKEY_CTX_set_signature_md 3
@@ -209,6 +206,8 @@ structure according to PKCS#1 when signing and this structure is
209expected (and stripped off) when verifying. 206expected (and stripped off) when verifying.
210If this control is not used with RSA and PKCS#1 padding then the 207If this control is not used with RSA and PKCS#1 padding then the
211supplied data is used directly and not encapsulated. 208supplied data is used directly and not encapsulated.
209In the case of X9.31 padding for RSA the algorithm identifier byte is
210added or checked and removed if this control is called.
212If it is not called then the first byte of the plaintext buffer is 211If it is not called then the first byte of the plaintext buffer is
213expected to be the algorithm identifier byte. 212expected to be the algorithm identifier byte.
214.Pp 213.Pp