8 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_SPHINCSPLUS_SHA2_H_
9 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_SPHINCSPLUS_SHA2_H_
12 #include "sw/device/silicon_creator/lib/error.h"
13 #include "sw/device/silicon_creator/lib/sigverify/sphincsplus/params.h"
15 static_assert(kSpxSha512 == 0,
16 "Parameter sets requiring SHA-512 are not supported.");
26 kSpxSha2BlockNumBytes = 512 / 8,
30 kSpxSha2BlockNumWords = kSpxSha2BlockNumBytes /
sizeof(uint32_t),
34 kSpxSha256AddrBytes = 22,
51 void mgf1_sha256(
const uint32_t *in,
size_t in_len,
size_t out_len,