2018-02-27 03:45:17 +00:00
|
|
|
#ifdef WITH_XMSS
|
2018-02-26 03:56:44 +00:00
|
|
|
/* $OpenBSD: xmss_hash_address.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
|
2018-02-23 15:58:37 +00:00
|
|
|
/*
|
|
|
|
hash_address.h version 20160722
|
|
|
|
Andreas Hülsing
|
|
|
|
Joost Rijneveld
|
|
|
|
Public domain.
|
|
|
|
*/
|
|
|
|
|
2018-02-26 06:42:56 +00:00
|
|
|
#ifdef HAVE_STDINT_H
|
2018-02-23 15:58:37 +00:00
|
|
|
#include <stdint.h>
|
2018-02-26 06:42:56 +00:00
|
|
|
#endif
|
2018-02-23 15:58:37 +00:00
|
|
|
|
|
|
|
void setLayerADRS(uint32_t adrs[8], uint32_t layer);
|
|
|
|
|
|
|
|
void setTreeADRS(uint32_t adrs[8], uint64_t tree);
|
|
|
|
|
|
|
|
void setType(uint32_t adrs[8], uint32_t type);
|
|
|
|
|
|
|
|
void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask);
|
|
|
|
|
|
|
|
// OTS
|
|
|
|
|
|
|
|
void setOTSADRS(uint32_t adrs[8], uint32_t ots);
|
|
|
|
|
|
|
|
void setChainADRS(uint32_t adrs[8], uint32_t chain);
|
|
|
|
|
|
|
|
void setHashADRS(uint32_t adrs[8], uint32_t hash);
|
|
|
|
|
|
|
|
// L-tree
|
|
|
|
|
|
|
|
void setLtreeADRS(uint32_t adrs[8], uint32_t ltree);
|
|
|
|
|
|
|
|
// Hash Tree & L-tree
|
|
|
|
|
|
|
|
void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight);
|
|
|
|
|
|
|
|
void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex);
|
|
|
|
|
2018-02-27 03:45:17 +00:00
|
|
|
#endif /* WITH_XMSS */
|