Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

33 lignes
808 B

  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