pqc/crypto_sign/sphincs-sha256-256s-simple/clean/sha256.h

24 lines
681 B
C
Raw Normal View History

2019-04-16 14:15:03 +01:00
#ifndef SPX_SHA256_H
#define SPX_SHA256_H
#define SPX_SHA256_BLOCK_BYTES 64
#define SPX_SHA256_OUTPUT_BYTES 32 /* This does not necessarily equal SPX_N */
#define SPX_SHA256_ADDR_BYTES 22
#include <stddef.h>
#include <stdint.h>
#include "sha2.h"
2019-04-16 14:15:03 +01:00
void PQCLEAN_SPHINCSSHA256256SSIMPLE_CLEAN_compress_address(unsigned char *out, const uint32_t addr[8]);
void PQCLEAN_SPHINCSSHA256256SSIMPLE_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
extern sha256ctx PQCLEAN_SPHINCSSHA256256SSIMPLE_CLEAN_state_seeded;
2019-04-16 14:15:03 +01:00
void PQCLEAN_SPHINCSSHA256256SSIMPLE_CLEAN_seed_state(const unsigned char *pub_seed);
#endif