2016-02-16 15:31:18 +00:00
|
|
|
/*
|
2016-09-22 15:31:41 +01:00
|
|
|
hash_address.h version 20160722
|
2016-02-16 15:31:18 +00:00
|
|
|
Andreas Hülsing
|
|
|
|
Joost Rijneveld
|
|
|
|
Public domain.
|
|
|
|
*/
|
|
|
|
|
2016-07-11 10:15:16 +01:00
|
|
|
#include <stdint.h>
|
2016-02-16 15:31:18 +00:00
|
|
|
|
2016-07-11 10:15:16 +01: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);
|
2016-02-16 15:31:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|