hash: implement SHA-{224,256}

Add the HMAC and Wycheproof bits for HMAC while at it.
This commit is contained in:
Lucas Gabriel Vuotto 2024-06-07 03:14:21 +00:00
parent 0605d10bb3
commit 1a8f813442
11 changed files with 521 additions and 3 deletions

View file

@ -33,6 +33,10 @@ tests-mac:
.endif
.for p in ${MAC}
perl ${.CURDIR}/mac.pl ${TESTOPTS} -x ./${p} \
${WYCHEPROOF_DIR}/testvectors/hmac_sha224_test.json \
${WYCHEPROOF_DIR}/testvectors_v1/hmac_sha224_test.json \
${WYCHEPROOF_DIR}/testvectors/hmac_sha256_test.json \
${WYCHEPROOF_DIR}/testvectors_v1/hmac_sha256_test.json \
${WYCHEPROOF_DIR}/testvectors/hmac_sha384_test.json \
${WYCHEPROOF_DIR}/testvectors_v1/hmac_sha384_test.json \
${WYCHEPROOF_DIR}/testvectors/hmac_sha512_test.json \