summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2019-11-01 19:37:21 +0000
committerschwarze <>2019-11-01 19:37:21 +0000
commitccadde6e777d3e93cb57976bb8aadd1d9c8a5312 (patch)
tree5da6c9b3f782fe630adf6da6ac05cf2e985db2d2 /src
parent37518922d5c6fc537936bfb9b9f1bbfaf4ab0977 (diff)
downloadopenbsd-ccadde6e777d3e93cb57976bb8aadd1d9c8a5312.tar.gz
openbsd-ccadde6e777d3e93cb57976bb8aadd1d9c8a5312.tar.bz2
openbsd-ccadde6e777d3e93cb57976bb8aadd1d9c8a5312.zip
In rsa.h rev. 1.45, jsing@ provided
the three macro constants RSA_PSS_SALTLEN_*; document them. The wording is a combination of our existing text and the wording in the OpenSSL 1.1.1 branch, which is still under a free license.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.324
1 files changed, 16 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3 b/src/lib/libcrypto/man/RSA_pkey_ctx_ctrl.3
index dbfd9c16f6..c89ceec436 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.3 2019/11/01 13:53:25 schwarze Exp $ 1.\" $OpenBSD: RSA_pkey_ctx_ctrl.3,v 1.4 2019/11/01 19:37:21 schwarze 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
@@ -303,13 +303,21 @@ The
303.Fn EVP_PKEY_CTX_set_rsa_pss_saltlen 303.Fn EVP_PKEY_CTX_set_rsa_pss_saltlen
304macro sets the RSA PSS salt length to 304macro sets the RSA PSS salt length to
305.Fa len . 305.Fa len .
306Two special values are supported: -1 sets the salt length to the digest 306Three special values are supported:
307length. 307.Dv RSA_PSS_SALTLEN_DIGEST
308When signing -2 sets the salt length to the maximum permissible value. 308sets the salt length to the digest length.
309When verifying -2 causes the salt length to be automatically determined 309.Dv RSA_PSS_SALTLEN_MAX
310based on the PSS block structure. 310sets the salt length to the maximum permissible value.
311If this macro is not called a salt length value of -2 is used by 311When signing,
312default. 312.Dv RSA_PSS_SALTLEN_AUTO
313sets the salt length to the maximum permissible value.
314When verifying,
315.Dv RSA_PSS_SALTLEN_AUTO
316causes the salt length to be automatically determined based on the
317PSS block structure.
318If this macro is not called, a salt length value of
319.Dv RSA_PSS_SALTLEN_AUTO
320is used by default.
313.Pp 321.Pp
314If the key has usage restrictions and an attempt is made to set the 322If the key has usage restrictions and an attempt is made to set the
315salt length below the minimum value, an error occurs. 323salt length below the minimum value, an error occurs.