8 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_SPHINCSPLUS_VERIFY_H_
9 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_SPHINCSPLUS_VERIFY_H_
15 #include "sw/device/silicon_creator/lib/error.h"
16 #include "sw/device/silicon_creator/lib/sigverify/sphincsplus/params.h"
26 kSpxVerifyRootNumWords = kSpxNWords,
30 kSpxVerifySigBytes = kSpxBytes,
34 kSpxVerifySigWords = kSpxBytes /
sizeof(uint32_t),
38 kSpxVerifyPkBytes = kSpxPkBytes,
42 kSpxVerifyPkWords = kSpxPkWords,
66 rom_error_t spx_verify(
const uint32_t *sig,
const uint8_t *msg_prefix_1,
67 size_t msg_prefix_1_len,
const uint8_t *msg_prefix_2,
68 size_t msg_prefix_2_len,
const uint8_t *msg_prefix_3,
69 size_t msg_prefix_3_len,
const uint8_t *msg,
70 size_t msg_len,
const uint32_t *pk, uint32_t *root);
79 void spx_public_key_root(
const uint32_t *pk, uint32_t *root);