diff options
Diffstat (limited to 'xmss_hash.h')
-rw-r--r-- | xmss_hash.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xmss_hash.h b/xmss_hash.h new file mode 100644 index 000000000..2fed73009 --- /dev/null +++ b/xmss_hash.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | hash.h version 20160722 | ||
3 | Andreas Hülsing | ||
4 | Joost Rijneveld | ||
5 | Public domain. | ||
6 | */ | ||
7 | |||
8 | #ifndef HASH_H | ||
9 | #define HASH_H | ||
10 | |||
11 | #define IS_LITTLE_ENDIAN 1 | ||
12 | |||
13 | unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]); | ||
14 | int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen); | ||
15 | int h_msg(unsigned char *out,const unsigned char *in,unsigned long long inlen, const unsigned char *key, const unsigned int keylen, const unsigned int n); | ||
16 | int hash_h(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n); | ||
17 | int hash_f(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n); | ||
18 | |||
19 | #endif | ||