xmss-KAT-generator/hash.h

20 righe
667 B
C

/*
2016-09-22 15:31:41 +01:00
hash.h version 20160722
Andreas Hülsing
Joost Rijneveld
Public domain.
*/
2015-08-11 11:08:27 +01:00
#ifndef HASH_H
#define HASH_H
#define IS_LITTLE_ENDIAN 1
unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]);
int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
int h_msg(unsigned char *out,const unsigned char *in,unsigned long long inlen, const unsigned char *key, const unsigned int keylen);
int hash_h(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8]);
int hash_f(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8]);
2015-08-11 11:08:27 +01:00
#endif