openssl/providers/common
Dimitri John Ledkov 973ddaa03f rsa-pss: add tests checking for SHAKE usage in RSA-PSS
FIPS 186-5, RFC 8692, RFC 8702 all agree and specify that Shake shall
be used directly as MGF (not as a hash in MGF1). Add tests that try to
specify shake hash as MGF1 to ensure that fails.

Separately the above standards specify how to use SHAKE as a message
digest with either fixed or minimum output lengths. However, currently
shake is not part of allowed hashes.

Note that rsa_setup_md()/rsa_setup_mgf1_md() call
ossl_digest_rsa_sign_get_md_nid() ->
ossl_digest_get_approved_nid_with_sha1() ->
ossl_digest_get_approved_nid() which only contain sha1/sha2/sha3
digests without XOF.

The digest test case will need to be replace if/when shake with
minimum output lengths is added to ossl_digest_get_approved_nid().

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24387)
2024-05-22 15:31:00 +02:00
..
der configure: introduce no-ecx to remove ECX related feature 2023-06-14 13:06:22 +10:00
include/prov Copyright year updates 2023-09-07 09:59:15 +01:00
bio_prov.c
build.info Add PBKDF1 to the legacy provider 2021-05-24 15:21:25 +10:00
capabilities.c Exclude X25519 and X448 from capabilities advertised by FIPS provider 2024-04-19 10:32:27 +02:00
digest_to_nid.c rsa-pss: add tests checking for SHAKE usage in RSA-PSS 2024-05-22 15:31:00 +02:00
provider_ctx.c
provider_err.c proverr: add PROV_R_{INVALID_MEMORY_SIZE,INVALID_THREAD_POOL_SIZE} 2023-03-17 11:12:47 +11:00
provider_seeding.c rand: add callbacks to cleanup the user entropy resp. nonce 2023-10-20 09:48:34 +01:00
provider_util.c Cleanup : directly include of internal/nelem.h when required. 2022-11-23 18:08:25 +01:00
securitycheck_default.c Copyright year updates 2023-09-07 09:59:15 +01:00
securitycheck_fips.c Copyright year updates 2023-09-07 09:59:15 +01:00
securitycheck.c Copyright year updates 2023-09-07 09:59:15 +01:00