You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hash_address.h 808 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef XMSS_HASH_ADDRESS_H
  2. #define XMSS_HASH_ADDRESS_H
  3. #include <stdint.h>
  4. void set_layer_addr(uint32_t addr[8], uint32_t layer);
  5. void set_tree_addr(uint32_t addr[8], uint64_t tree);
  6. void set_type(uint32_t addr[8], uint32_t type);
  7. void set_key_and_mask(uint32_t addr[8], uint32_t key_and_mask);
  8. /* These functions are used for OTS addresses. */
  9. void set_ots_addr(uint32_t addr[8], uint32_t ots);
  10. void set_chain_addr(uint32_t addr[8], uint32_t chain);
  11. void set_hash_addr(uint32_t addr[8], uint32_t hash);
  12. /* This function is used for L-tree addresses. */
  13. void set_ltree_addr(uint32_t addr[8], uint32_t ltree);
  14. /* These functions are used for hash tree addresses. */
  15. void set_tree_height(uint32_t addr[8], uint32_t treeHeight);
  16. void set_tree_index(uint32_t addr[8], uint32_t treeIndex);
  17. #endif