9 #include "sw/device/silicon_creator/lib/drivers/hmac.h"
10 #include "sw/device/silicon_creator/lib/sigverify/sphincsplus/params.h"
11 #include "sw/device/silicon_creator/lib/sigverify/sphincsplus/sha2.h"
12 #include "sw/device/silicon_creator/lib/sigverify/sphincsplus/thash.h"
14 void thash(
const uint32_t *in,
size_t inblocks,
const spx_ctx_t *ctx,
17 hmac_sha256_update((
unsigned char *)addr->addr, kSpxSha256AddrBytes);
18 hmac_sha256_update_words(in, inblocks * kSpxNWords);
19 hmac_sha256_process();
20 hmac_sha256_final_truncated(out, kSpxNWords);