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.

29 lines
1.1 KiB

  1. #ifndef XMSS_COMMONS_H
  2. #define XMSS_COMMONS_H
  3. #include <stdint.h>
  4. #include "params.h"
  5. void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
  6. void gen_leaf_wots(const xmss_params *params, unsigned char *leaf,
  7. const unsigned char *sk_seed, const unsigned char *pub_seed,
  8. uint32_t ltree_addr[8], uint32_t ots_addr[8]);
  9. void get_seed(const xmss_params *params, unsigned char *seed,
  10. const unsigned char *sk_seed, uint32_t addr[8]);
  11. void l_tree(const xmss_params *params, unsigned char *leaf, unsigned char *wots_pk,
  12. const unsigned char *pub_seed, uint32_t addr[8]);
  13. int xmss_core_sign_open(const xmss_params *params,
  14. unsigned char *m, unsigned long long *mlen,
  15. const unsigned char *sm, unsigned long long smlen,
  16. const unsigned char *pk);
  17. int xmssmt_core_sign_open(const xmss_params *params,
  18. unsigned char *m, unsigned long long *mlen,
  19. const unsigned char *sm, unsigned long long smlen,
  20. const unsigned char *pk);
  21. #endif