diff options
Diffstat (limited to '')
-rw-r--r-- | libar2simplified.h | 16 |
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 |