wycheproof-rsa-pkcs1-sig-wrong-primitive
RSA PKCS#1: Wrong primitive
The signature uses RSASSA-PSS instead of RSA PKCS#1 padding. Signature verification must not accept signatures for distinct paddings.
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 padding. Bugs in the verification are difficult to detect. Demonstrated by 87 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.