blob: 66bb4cc4d5fa7446f4bb78bd008ee87cec530a86 [file] [log] [blame]
Darren Tuckera10d8552018-02-27 14:45:17 +11001#ifdef WITH_XMSS
dtucker@openbsd.org27b9f392018-02-26 03:56:44 +00002/* $OpenBSD: xmss_hash_address.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
markus@openbsd.org1b11ea72018-02-23 15:58:37 +00003/*
4hash_address.h version 20160722
5Andreas Hülsing
6Joost Rijneveld
7Public domain.
8*/
9
Darren Tuckerc7ef4a32018-02-26 17:42:56 +110010#ifdef HAVE_STDINT_H
markus@openbsd.org1b11ea72018-02-23 15:58:37 +000011#include <stdint.h>
Darren Tuckerc7ef4a32018-02-26 17:42:56 +110012#endif
markus@openbsd.org1b11ea72018-02-23 15:58:37 +000013
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
Darren Tuckera10d8552018-02-27 14:45:17 +110040#endif /* WITH_XMSS */