wycheproof-ecdsa-ber-encoded-signature
ECDSA: Ber encoded signature
ECDSA signatures are usually DER encoded. This signature contains valid values for r and s, but it uses alternative BER encoding.
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.
Accepting alternative BER encodings may be benign in some cases, or be an issue if protocol requires signature malleability. Demonstrated by 310 test vectors across 45 vector documents in Project Wycheproof.
Provenance
- Kind
- normativeA specification clause requires this. Failing it is non-conformance, not opinion.
- Source
- wycheproof
- Clause
- FIPS 186-5 §6
- CVE
- CVE-2020-14966
- 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.