aboutsummaryrefslogtreecommitdiffstats
path: root/crypt.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-23 19:15:49 +0200
committerMattias Andrée <maandree@kth.se>2023-06-23 19:15:49 +0200
commit7281ae7db4d9bc9eb2b59134e1dea1231013f1af (patch)
tree14d15e56dea896c71b0b4576a9633ea759080d58 /crypt.h
parentFix exit status (diff)
downloadkey2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.gz
key2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.bz2
key2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.xz
Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'crypt.h')
-rw-r--r--crypt.h13
1 files changed, 13 insertions, 0 deletions
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 <stddef.h>
+#include <libar2.h>
+
+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);
+}