From f3667cfe05238c23a8a8a22c88e14562ddc07103 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Fri, 31 May 2024 21:51:37 +0000 Subject: [PATCH] util: make lc_scrub public --- lilcrypto.h | 7 +++++++ util.c | 2 +- util.h | 7 ------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lilcrypto.h b/lilcrypto.h index 2e6d57d..f599c36 100644 --- a/lilcrypto.h +++ b/lilcrypto.h @@ -104,3 +104,10 @@ int lc_aead_open(const struct lc_aead_impl *, const uint8_t *, size_t, const uint8_t *, size_t); const struct lc_aead_impl *lc_aead_impl_chacha20_poly1305(void); + + +/* + * Utilities. + */ + +void lc_scrub(void *, size_t); diff --git a/util.c b/util.c index 1100225..9836368 100644 --- a/util.c +++ b/util.c @@ -16,7 +16,7 @@ #include -#include "util.h" +#include "lilcrypto.h" void diff --git a/util.h b/util.h index e1de831..cb19b60 100644 --- a/util.h +++ b/util.h @@ -21,13 +21,6 @@ #define nelems(_a) (sizeof((_a)) / sizeof((_a)[0])) -/* - * External definitions. - */ - -void lc_scrub(void *, size_t); - - /* * Endianness. */