summaryrefslogtreecommitdiff
path: root/xmss_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmss_hash.h')
-rw-r--r--xmss_hash.h19
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/*
2hash.h version 20160722
3Andreas Hülsing
4Joost Rijneveld
5Public domain.
6*/
7
8#ifndef HASH_H
9#define HASH_H
10
11#define IS_LITTLE_ENDIAN 1
12
13unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]);
14int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
15int 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);
16int hash_h(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n);
17int 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