mirror of
https://github.com/luxfi/pqclean.git
synced 2026-11-03 09:57:54 +00:00
Remove #ifdefs, fix a64 lack of MSVC support, fix a cast Fix some bugs minor fixes Add duplicate consistency files more minor fixes Fix problems found by tests Fix 32-bit compatibility problems Fix more bugs Windows compat issues Fix KECCAK4X in NMake makefiles
29 lines
587 B
C
29 lines
587 B
C
#ifndef SPX_CONTEXT_H
|
|
#define SPX_CONTEXT_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "params.h"
|
|
#include "sha2.h"
|
|
|
|
typedef struct {
|
|
uint8_t pub_seed[SPX_N];
|
|
uint8_t sk_seed[SPX_N];
|
|
|
|
// sha256 state that absorbed pub_seed
|
|
sha256ctx state_seeded;
|
|
|
|
// sha512 state that absorbed pub_seed
|
|
sha512ctx state_seeded_512;
|
|
|
|
} 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
|