xmss_hash_address.h 836 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifdef WITH_XMSS
  2. /* $OpenBSD: xmss_hash_address.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
  3. /*
  4. hash_address.h version 20160722
  5. Andreas Hülsing
  6. Joost Rijneveld
  7. Public domain.
  8. */
  9. #ifdef HAVE_STDINT_H
  10. #include <stdint.h>
  11. #endif
  12. void setLayerADRS(uint32_t adrs[8], uint32_t layer);
  13. void setTreeADRS(uint32_t adrs[8], uint64_t tree);
  14. void setType(uint32_t adrs[8], uint32_t type);
  15. void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask);
  16. // OTS
  17. void setOTSADRS(uint32_t adrs[8], uint32_t ots);
  18. void setChainADRS(uint32_t adrs[8], uint32_t chain);
  19. void setHashADRS(uint32_t adrs[8], uint32_t hash);
  20. // L-tree
  21. void setLtreeADRS(uint32_t adrs[8], uint32_t ltree);
  22. // Hash Tree & L-tree
  23. void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight);
  24. void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex);
  25. #endif /* WITH_XMSS */