xmss-KAT-generator/hash.h

16 lines
601 B
C
Raw Normal View History

/*
2016-02-10 14:57:16 +00:00
hash.h version 20151120
Andreas Hülsing
Public domain.
*/
2015-08-11 11:08:27 +01:00
#ifndef HASH_H
#define HASH_H
int prf_m(unsigned char *out, const unsigned char *in, size_t inlen, const unsigned char *key, int keylen);
int hash_m(unsigned char *out,const unsigned char *in,unsigned long long inlen, const unsigned char *key, const int keylen, const int m);
int hash_2n_n(unsigned char *out,const unsigned char *in, const unsigned char *pub_seed, unsigned char addr[16], const int n);
int hash_n_n(unsigned char *out,const unsigned char *in, const unsigned char *pub_seed, unsigned char addr[16], const int n);
#endif