wycheproof-hmac-truncated-hmac
HMAC: Truncated hmac
A truncated HMAC is not the same as an HMAC with a truncated hash. This test vector an HMAC that was simply truncated instead of using the correct hash function.
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.
A truncated HMAC is not the same as an HMAC with a truncated hash. This test vector an HMAC that was simply truncated instead of using the correct hash function. Demonstrated by 2 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 2104
- 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.