xmss-KAT-generator/utils.h
2017-11-01 14:59:33 +01:00

16 rindas
399 B
C

#ifndef XMSS_UTILS_H
#define XMSS_UTILS_H
/**
* Converts the value of 'in' to 'outlen' bytes in big-endian byte order.
*/
void ull_to_bytes(unsigned char *out, unsigned int outlen,
unsigned long long in);
/**
* Converts the inlen bytes in 'in' from big-endian byte order to an integer.
*/
unsigned long long bytes_to_ull(const unsigned char *in, unsigned int inlen);
#endif