From 945f3a935d85d55c23d5cfe4b98b064532dc6bcd Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Thu, 30 Oct 2025 23:29:08 +0100 Subject: Replace libhydrogen by tweetnacl and tweetpwhash --- ext/util/util.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ext/util/util.h (limited to 'ext/util/util.h') diff --git a/ext/util/util.h b/ext/util/util.h new file mode 100644 index 0000000..c67972e --- /dev/null +++ b/ext/util/util.h @@ -0,0 +1,13 @@ +#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 */ -- cgit v1.2.3-70-g09d2