2019-12-12 13:29:29 +00:00
|
|
|
#ifndef PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_HASH_H
|
|
|
|
#define PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_HASH_H
|
2019-04-16 14:15:03 +01:00
|
|
|
|
2019-07-17 07:37:14 +01:00
|
|
|
#include "hash_state.h"
|
2019-06-21 13:34:36 +01:00
|
|
|
|
|
|
|
#include <stddef.h>
|
2019-04-16 14:15:03 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
void PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_initialize_hash_function(
|
2019-07-17 07:37:14 +01:00
|
|
|
hash_state *hash_state_seeded,
|
2019-04-16 14:15:03 +01:00
|
|
|
const unsigned char *pub_seed, const unsigned char *sk_seed);
|
|
|
|
|
2019-12-12 13:29:29 +00:00
|
|
|
void PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_destroy_hash_function(hash_state *hash_state_seeded);
|
|
|
|
|
2019-04-16 14:15:03 +01:00
|
|
|
void PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_prf_addr(
|
2019-06-21 13:34:36 +01:00
|
|
|
unsigned char *out, const unsigned char *key, const uint32_t addr[8],
|
2019-07-17 07:37:14 +01:00
|
|
|
const hash_state *hash_state_seeded);
|
2019-04-16 14:15:03 +01:00
|
|
|
|
|
|
|
void PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_gen_message_random(
|
|
|
|
unsigned char *R,
|
|
|
|
const unsigned char *sk_prf, const unsigned char *optrand,
|
2019-06-21 13:34:36 +01:00
|
|
|
const unsigned char *m, size_t mlen,
|
2019-07-17 07:37:14 +01:00
|
|
|
const hash_state *hash_state_seeded);
|
2019-04-16 14:15:03 +01:00
|
|
|
|
|
|
|
void PQCLEAN_SPHINCSHARAKA128SSIMPLE_CLEAN_hash_message(
|
|
|
|
unsigned char *digest, uint64_t *tree, uint32_t *leaf_idx,
|
|
|
|
const unsigned char *R, const unsigned char *pk,
|
2019-06-21 13:34:36 +01:00
|
|
|
const unsigned char *m, size_t mlen,
|
2019-07-17 07:37:14 +01:00
|
|
|
const hash_state *hash_state_seeded);
|
2019-04-16 14:15:03 +01:00
|
|
|
|
|
|
|
#endif
|