blob: c67972e4f6c728c66a702be19a3fdf4c9ee6aa0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef UTIL_H
#define UTIL_H
#include <stdint.h>
#include <sys/types.h>
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 */
|