1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-30 03:11:43 +00:00
pqcrypto/crypto_sign/sphincs-shake256-128f-simple/clean/hash.h

32 lines
1.1 KiB
C
Raw Normal View History

#ifndef PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_HASH_H
#define PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_HASH_H
2019-04-05 16:58:48 +01:00
#include "hash_state.h"
#include <stddef.h>
2019-04-05 16:58:48 +01:00
#include <stdint.h>
void PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_initialize_hash_function(
hash_state *hash_state_seeded,
2019-04-05 16:58:48 +01:00
const unsigned char *pub_seed, const unsigned char *sk_seed);
void PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_destroy_hash_function(hash_state *hash_state_seeded);
2019-04-05 16:58:48 +01:00
void PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_prf_addr(
unsigned char *out, const unsigned char *key, const uint32_t addr[8],
const hash_state *hash_state_seeded);
2019-04-05 16:58:48 +01:00
void PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_gen_message_random(
unsigned char *R,
const unsigned char *sk_prf, const unsigned char *optrand,
const unsigned char *m, size_t mlen,
const hash_state *hash_state_seeded);
2019-04-05 16:58:48 +01:00
void PQCLEAN_SPHINCSSHAKE256128FSIMPLE_CLEAN_hash_message(
unsigned char *digest, uint64_t *tree, uint32_t *leaf_idx,
const unsigned char *R, const unsigned char *pk,
const unsigned char *m, size_t mlen,
const hash_state *hash_state_seeded);
2019-04-05 16:58:48 +01:00
#endif