#ifndef SPX_CONTEXT_H #define SPX_CONTEXT_H #include #include "params.h" #include "sha2.h" #include "sha256avx.h" // funky ordering due to optimal padding typedef struct { sha256x8ctx statex8_seeded; sha256ctx state_seeded; uint8_t pub_seed[SPX_N]; uint8_t sk_seed[SPX_N]; } spx_ctx; #define initialize_hash_function SPX_NAMESPACE(initialize_hash_function) void initialize_hash_function(spx_ctx *ctx); #define free_hash_function SPX_NAMESPACE(free_hash_function) void free_hash_function(spx_ctx *ctx); #endif