2019-12-12 13:29:29 +00:00
|
|
|
#ifndef PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_SHA256_H
|
|
|
|
#define PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_SHA256_H
|
2019-04-16 14:15:03 +01:00
|
|
|
|
2019-12-12 13:29:29 +00:00
|
|
|
#define PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_SHA256_BLOCK_BYTES 64
|
|
|
|
#define PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_SHA256_OUTPUT_BYTES 32 /* This does not necessarily equal PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_N */
|
|
|
|
#define PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_SHA256_ADDR_BYTES 22
|
2019-04-16 14:15:03 +01:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-05-20 08:39:06 +01:00
|
|
|
#include "sha2.h"
|
|
|
|
|
2019-04-16 14:15:03 +01:00
|
|
|
void PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_compress_address(unsigned char *out, const uint32_t addr[8]);
|
|
|
|
|
|
|
|
void PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_mgf1(
|
|
|
|
unsigned char *out, unsigned long outlen,
|
2019-04-24 11:57:51 +01:00
|
|
|
unsigned char *input_plus_four_bytes, unsigned long inlen);
|
2019-04-16 14:15:03 +01:00
|
|
|
|
2019-07-17 07:37:14 +01:00
|
|
|
void PQCLEAN_SPHINCSSHA256128FSIMPLE_CLEAN_seed_state(sha256ctx *hash_state_seeded, const unsigned char *pub_seed);
|
2019-04-16 14:15:03 +01:00
|
|
|
|
|
|
|
#endif
|