summaryrefslogtreecommitdiff
path: root/xmss_hash_address.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmss_hash_address.h')
-rw-r--r--xmss_hash_address.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/xmss_hash_address.h b/xmss_hash_address.h
new file mode 100644
index 000000000..66bb4cc4d
--- /dev/null
+++ b/xmss_hash_address.h
@@ -0,0 +1,40 @@
1#ifdef WITH_XMSS
2/* $OpenBSD: xmss_hash_address.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
3/*
4hash_address.h version 20160722
5Andreas Hülsing
6Joost Rijneveld
7Public domain.
8*/
9
10#ifdef HAVE_STDINT_H
11#include <stdint.h>
12#endif
13
14void setLayerADRS(uint32_t adrs[8], uint32_t layer);
15
16void setTreeADRS(uint32_t adrs[8], uint64_t tree);
17
18void setType(uint32_t adrs[8], uint32_t type);
19
20void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask);
21
22// OTS
23
24void setOTSADRS(uint32_t adrs[8], uint32_t ots);
25
26void setChainADRS(uint32_t adrs[8], uint32_t chain);
27
28void setHashADRS(uint32_t adrs[8], uint32_t hash);
29
30// L-tree
31
32void setLtreeADRS(uint32_t adrs[8], uint32_t ltree);
33
34// Hash Tree & L-tree
35
36void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight);
37
38void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex);
39
40#endif /* WITH_XMSS */