summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-15 18:59:49 +0000
committertb <>2023-04-15 18:59:49 +0000
commit90bc52ec284ed000ba952cc4d8d31facd618af58 (patch)
treec9795972bdd9eb2dedc7bd8e07705e4797c1bc3a
parent0d8d33f95bb60ebc48034e0510af8a3adb7c1afa (diff)
downloadopenbsd-90bc52ec284ed000ba952cc4d8d31facd618af58.tar.gz
openbsd-90bc52ec284ed000ba952cc4d8d31facd618af58.tar.bz2
openbsd-90bc52ec284ed000ba952cc4d8d31facd618af58.zip
Adjust documentation of X9.31 padding mode
-rw-r--r--src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3 b/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3
index c89ceec436..582581b8f7 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.4 2019/11/01 19:37:21 schwarze Exp $ 1.\" $OpenBSD: RSA_pkey_ctx_ctrl.3,v 1.5 2023/04/15 18:59:49 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: November 1 2019 $ 58.Dd $Mdocdate: April 15 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,12 +189,14 @@ 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),
192.Dv RSA_X931_PADDING
193for X9.31 padding (signature operations only) and
194.Dv RSA_PKCS1_PSS_PADDING 192.Dv RSA_PKCS1_PSS_PADDING
195(sign and verify only). 193(sign and verify only).
196Only the last one can be used with keys of the type 194Only the last one can be used with keys of the type
197.Dv EVP_PKEY_RSA_PSS . 195.Dv EVP_PKEY_RSA_PSS .
196X9.31 padding mode is unsupported.
197.Dv RSA_X931_PADDING
198is provided for backward compatibility with some existing
199application software.
198.Pp 200.Pp
199Two RSA padding modes behave differently if 201Two RSA padding modes behave differently if
200.Xr EVP_PKEY_CTX_set_signature_md 3 202.Xr EVP_PKEY_CTX_set_signature_md 3
@@ -206,8 +208,6 @@ structure according to PKCS#1 when signing and this structure is
206expected (and stripped off) when verifying. 208expected (and stripped off) when verifying.
207If this control is not used with RSA and PKCS#1 padding then the 209If this control is not used with RSA and PKCS#1 padding then the
208supplied data is used directly and not encapsulated. 210supplied 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.
211If 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
212expected to be the algorithm identifier byte. 212expected to be the algorithm identifier byte.
213.Pp 213.Pp