wycheproof-rsa-pkcs1-sig-wrong-hash
RSA PKCS#1: Wrong hash
The signature uses an incorrect hash function. RSA PKCS#1 verification must not accept signatures using alternative hash functions.
REJECT
Your service should reject 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 security of the signature scheme is reduced to the security of the weakest accepted hash function. Bugs in the verification are difficult to detect. Demonstrated by 484 test vectors across 24 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.2
- 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.