Darren Tucker | a10d855 | 2018-02-27 14:45:17 +1100 | [diff] [blame] | 1 | #ifdef WITH_XMSS |
dtucker@openbsd.org | 27b9f39 | 2018-02-26 03:56:44 +0000 | [diff] [blame] | 2 | /* $OpenBSD: xmss_hash_address.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */ |
markus@openbsd.org | 1b11ea7 | 2018-02-23 15:58:37 +0000 | [diff] [blame] | 3 | /* |
| 4 | hash_address.h version 20160722 |
| 5 | Andreas Hülsing |
| 6 | Joost Rijneveld |
| 7 | Public domain. |
| 8 | */ |
| 9 | |
Darren Tucker | c7ef4a3 | 2018-02-26 17:42:56 +1100 | [diff] [blame] | 10 | #ifdef HAVE_STDINT_H |
markus@openbsd.org | 1b11ea7 | 2018-02-23 15:58:37 +0000 | [diff] [blame] | 11 | #include <stdint.h> |
Darren Tucker | c7ef4a3 | 2018-02-26 17:42:56 +1100 | [diff] [blame] | 12 | #endif |
markus@openbsd.org | 1b11ea7 | 2018-02-23 15:58:37 +0000 | [diff] [blame] | 13 | |
| 14 | void setLayerADRS(uint32_t adrs[8], uint32_t layer); |
| 15 | |
| 16 | void setTreeADRS(uint32_t adrs[8], uint64_t tree); |
| 17 | |
| 18 | void setType(uint32_t adrs[8], uint32_t type); |
| 19 | |
| 20 | void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask); |
| 21 | |
| 22 | // OTS |
| 23 | |
| 24 | void setOTSADRS(uint32_t adrs[8], uint32_t ots); |
| 25 | |
| 26 | void setChainADRS(uint32_t adrs[8], uint32_t chain); |
| 27 | |
| 28 | void setHashADRS(uint32_t adrs[8], uint32_t hash); |
| 29 | |
| 30 | // L-tree |
| 31 | |
| 32 | void setLtreeADRS(uint32_t adrs[8], uint32_t ltree); |
| 33 | |
| 34 | // Hash Tree & L-tree |
| 35 | |
| 36 | void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight); |
| 37 | |
| 38 | void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex); |
| 39 | |
Darren Tucker | a10d855 | 2018-02-27 14:45:17 +1100 | [diff] [blame] | 40 | #endif /* WITH_XMSS */ |