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.

16 line
399 B

  1. #ifndef XMSS_UTILS_H
  2. #define XMSS_UTILS_H
  3. /**
  4. * Converts the value of 'in' to 'outlen' bytes in big-endian byte order.
  5. */
  6. void ull_to_bytes(unsigned char *out, unsigned int outlen,
  7. unsigned long long in);
  8. /**
  9. * Converts the inlen bytes in 'in' from big-endian byte order to an integer.
  10. */
  11. unsigned long long bytes_to_ull(const unsigned char *in, unsigned int inlen);
  12. #endif