diff options
author | schwarze <> | 2019-11-01 19:37:21 +0000 |
---|---|---|
committer | schwarze <> | 2019-11-01 19:37:21 +0000 |
commit | ccadde6e777d3e93cb57976bb8aadd1d9c8a5312 (patch) | |
tree | 5da6c9b3f782fe630adf6da6ac05cf2e985db2d2 /src | |
parent | 37518922d5c6fc537936bfb9b9f1bbfaf4ab0977 (diff) | |
download | openbsd-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.3 | 24 |
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 |
304 | macro sets the RSA PSS salt length to | 304 | macro sets the RSA PSS salt length to |
305 | .Fa len . | 305 | .Fa len . |
306 | Two special values are supported: -1 sets the salt length to the digest | 306 | Three special values are supported: |
307 | length. | 307 | .Dv RSA_PSS_SALTLEN_DIGEST |
308 | When signing -2 sets the salt length to the maximum permissible value. | 308 | sets the salt length to the digest length. |
309 | When verifying -2 causes the salt length to be automatically determined | 309 | .Dv RSA_PSS_SALTLEN_MAX |
310 | based on the PSS block structure. | 310 | sets the salt length to the maximum permissible value. |
311 | If this macro is not called a salt length value of -2 is used by | 311 | When signing, |
312 | default. | 312 | .Dv RSA_PSS_SALTLEN_AUTO |
313 | sets the salt length to the maximum permissible value. | ||
314 | When verifying, | ||
315 | .Dv RSA_PSS_SALTLEN_AUTO | ||
316 | causes the salt length to be automatically determined based on the | ||
317 | PSS block structure. | ||
318 | If this macro is not called, a salt length value of | ||
319 | .Dv RSA_PSS_SALTLEN_AUTO | ||
320 | is used by default. | ||
313 | .Pp | 321 | .Pp |
314 | If the key has usage restrictions and an attempt is made to set the | 322 | If the key has usage restrictions and an attempt is made to set the |
315 | salt length below the minimum value, an error occurs. | 323 | salt length below the minimum value, an error occurs. |