wycheproof-rsa-pss-distinct-hash
RSA-PSS: Distinct hash
The test vector uses distinct hashes for computing the message digest and the MGF. This is an unusual setup. Typically RSASSA-PSS signature use the same hash functions for both. RFC 8017 recommends to use the same hash function for the message digest and the MGF. Some libraries indeed only support RSASSA-PSS with identical hashes.
ACCEPT
Your service should accept this one.
Stated as the outcome to assert against, so a suite compares with this rather than hardcoding a result and getting it backwards.
The test vector uses distinct hashes for computing the message digest and the MGF. This is an unusual setup. Typically RSASSA-PSS signature use the same hash functions for both. RFC 8017 recommends to use the same hash function for the message digest and the MGF. Some libraries indeed only support RSASSA-PSS with identical hashes. Demonstrated by 240 test vectors across 2 vector documents in Project Wycheproof.
Provenance
- Kind
- normativeA specification clause requires this. Failing it is non-conformance, not opinion.
- Source
- wycheproof
- Clause
- RFC 8017 §8.1
- CVE
- none
- Weakness
- none
Test keys only. Nothing here is a statement about any particular service: the expected outcome above is what an application ought to do, not evidence that yours does.