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.

35 lines
892 B

  1. /*
  2. hash.h version 20160722
  3. Andreas Hülsing
  4. Joost Rijneveld
  5. Public domain.
  6. */
  7. #ifndef HASH_H
  8. #define HASH_H
  9. #include "params.h"
  10. #define IS_LITTLE_ENDIAN 1
  11. unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]);
  12. int prf(const xmss_params *params,
  13. unsigned char *out, const unsigned char *in,
  14. const unsigned char *key, unsigned int keylen);
  15. int h_msg(const xmss_params *params,
  16. unsigned char *out,
  17. const unsigned char *in, unsigned long long inlen,
  18. const unsigned char *key, const unsigned int keylen);
  19. int hash_h(const xmss_params *params,
  20. unsigned char *out, const unsigned char *in,
  21. const unsigned char *pub_seed, uint32_t addr[8]);
  22. int hash_f(const xmss_params *params,
  23. unsigned char *out, const unsigned char *in,
  24. const unsigned char *pub_seed, uint32_t addr[8]);
  25. #endif