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 821 B

8 years ago
12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. hash_address.h version 20160722
  3. Andreas Hülsing
  4. Joost Rijneveld
  5. Public domain.
  6. */
  7. #include <stdint.h>
  8. void set_layer_addr(uint32_t addr[8], uint32_t layer);
  9. void set_tree_addr(uint32_t addr[8], uint64_t tree);
  10. void set_type(uint32_t addr[8], uint32_t type);
  11. void set_key_and_mask(uint32_t addr[8], uint32_t key_and_mask);
  12. /* These functions are used for OTS addresses. */
  13. void set_ots_addr(uint32_t addr[8], uint32_t ots);
  14. void set_chain_addr(uint32_t addr[8], uint32_t chain);
  15. void set_hash_addr(uint32_t addr[8], uint32_t hash);
  16. /* This function is used for L-trees. */
  17. void set_ltree_addr(uint32_t addr[8], uint32_t ltree);
  18. /* These functions are used for hash tree addresses. */
  19. void set_tree_height(uint32_t addr[8], uint32_t treeHeight);
  20. void set_tree_index(uint32_t addr[8], uint32_t treeIndex);