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.h 806 B

9 years ago
9 years ago
1234567891011121314151617181920212223242526
  1. #ifndef XMSS_HASH_H
  2. #define XMSS_HASH_H
  3. #include <stdint.h>
  4. #include "params.h"
  5. void addr_to_bytes(unsigned char *bytes, const uint32_t addr[8]);
  6. int prf(const xmss_params *params,
  7. unsigned char *out, const unsigned char *in,
  8. const unsigned char *key, unsigned int keylen);
  9. int h_msg(const xmss_params *params,
  10. unsigned char *out,
  11. const unsigned char *in, unsigned long long inlen,
  12. const unsigned char *key, const unsigned int keylen);
  13. int hash_h(const xmss_params *params,
  14. unsigned char *out, const unsigned char *in,
  15. const unsigned char *pub_seed, uint32_t addr[8]);
  16. int hash_f(const xmss_params *params,
  17. unsigned char *out, const unsigned char *in,
  18. const unsigned char *pub_seed, uint32_t addr[8]);
  19. #endif