Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

há 9 anos
há 9 anos
há 9 anos
1234567891011121314151617181920212223242526272829303132333435
  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[32],
  8. const unsigned char *key);
  9. int prf_keygen(const xmss_params *params,
  10. unsigned char *out, const unsigned char *in,
  11. const unsigned char *key);
  12. int h_msg(const xmss_params *params,
  13. unsigned char *out,
  14. const unsigned char *in, unsigned long long inlen,
  15. const unsigned char *key, const unsigned int keylen);
  16. int thash_h(const xmss_params *params,
  17. unsigned char *out, const unsigned char *in,
  18. const unsigned char *pub_seed, uint32_t addr[8]);
  19. int thash_f(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_message(const xmss_params *params, unsigned char *out,
  23. const unsigned char *R, const unsigned char *root,
  24. unsigned long long idx,
  25. unsigned char *m_with_prefix, unsigned long long mlen);
  26. #endif