#include <openssl/base.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <openssl/sha.h>
#include "./params.h"
#include "./spx_util.h"
#include "./thash.h"
static void spx_thash(uint8_t *output, const uint8_t *input,
size_t input_blocks, const uint8_t pk_seed[SPX_N],
uint8_t addr[32]) { … }
void spx_thash_f(uint8_t *output, const uint8_t input[SPX_N],
const uint8_t pk_seed[SPX_N], uint8_t addr[32]) { … }
void spx_thash_h(uint8_t *output, const uint8_t input[2 * SPX_N],
const uint8_t pk_seed[SPX_N], uint8_t addr[32]) { … }
void spx_thash_hmsg(uint8_t *output, const uint8_t r[SPX_N],
const uint8_t pk_seed[SPX_N], const uint8_t pk_root[SPX_N],
const uint8_t *msg, size_t msg_len) { … }
void spx_thash_prf(uint8_t *output, const uint8_t pk_seed[SPX_N],
const uint8_t sk_seed[SPX_N], uint8_t addr[32]) { … }
void spx_thash_prfmsg(uint8_t *output, const uint8_t sk_prf[SPX_N],
const uint8_t opt_rand[SPX_N], const uint8_t *msg,
size_t msg_len) { … }
void spx_thash_tl(uint8_t *output, const uint8_t input[SPX_WOTS_BYTES],
const uint8_t pk_seed[SPX_N], uint8_t addr[32]) { … }
void spx_thash_tk(uint8_t *output, const uint8_t input[SPX_FORS_TREES * SPX_N],
const uint8_t pk_seed[SPX_N], uint8_t addr[32]) { … }