#ifndef UTIL_H #define UTIL_H #include #include int bin2hex(char *hex, size_t hexsize, const uint8_t *bin, size_t binlen); int hex2bin(uint8_t *bin, size_t binsize, const char *hex, size_t hexlen); void randombytes(uint8_t *buf, uint64_t n); void memzero(void *ptr, size_t num); #endif /* end of include guard: UTIL_H */