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

@ -79,6 +79,8 @@ kw2impl(const char *s)
{
/* Needs to be sorted. */
static const struct kwimpl tbl[] = {
{ "HMACSHA224", &lc_auth_impl_hmac_sha224 },
{ "HMACSHA256", &lc_auth_impl_hmac_sha256 },
{ "HMACSHA384", &lc_auth_impl_hmac_sha384 },
{ "HMACSHA512", &lc_auth_impl_hmac_sha512 },
};