aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-15 15:38:11 +0100
committerMattias Andrée <maandree@kth.se>2022-02-15 15:38:11 +0100
commitd831c660e27d7e62f7613cad1caed169ecf1433e (patch)
tree2de516846761f1405281f4e2155c5dc7fbdad50b /libar2simplified.h
parentAdd libar2simplified_recommendation (diff)
downloadlibar2simplified-d831c660e27d7e62f7613cad1caed169ecf1433e.tar.gz
libar2simplified-d831c660e27d7e62f7613cad1caed169ecf1433e.tar.bz2
libar2simplified-d831c660e27d7e62f7613cad1caed169ecf1433e.tar.xz
Add libar2simplified_init_context
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2simplified.h')
-rw-r--r--libar2simplified.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libar2simplified.h b/libar2simplified.h
index e1233e2..0d005fb 100644
--- a/libar2simplified.h
+++ b/libar2simplified.h
@@ -162,4 +162,20 @@ int libar2simplified_hash(void *hash, void *msg, size_t msglen, struct libar2_ar
LIBAR2_PUBLIC__ LIBAR2_NONNULL__(1, 2)
char *libar2simplified_crypt(char *msg, const char *params, char *rv);
+/* Lower-level functions: */
+
+/**
+ * Initialises the context argument for `libar2_hash`,
+ * with all auto-erase options turned off
+ *
+ * This function provides a dynamic memory management
+ * functions that erase memory before it is deallocated.
+ * It also also provides a multi-threading support using
+ * a thread pool.
+ *
+ * @param ctxp Output parameter
+ */
+LIBAR2_PUBLIC__
+void libar2simplified_init_context(struct libar2_context *ctxp);
+
#endif