From 7281ae7db4d9bc9eb2b59134e1dea1231013f1af Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Jun 2023 19:15:49 +0200 Subject: Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- crypt.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 crypt.h (limited to 'crypt.h') diff --git a/crypt.h b/crypt.h new file mode 100644 index 0000000..60621c5 --- /dev/null +++ b/crypt.h @@ -0,0 +1,13 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include + +char *key2root_crypt(char *msg, size_t msglen, const char *paramstr, int autoerase); + + +#define explicit_bzero key2root_erase +static inline void +key2root_erase(void *msg, size_t msglen) +{ + libar2_erase(msg, msglen); +} -- cgit v1.2.3-70-g09d2