diff options
Diffstat (limited to '')
-rw-r--r-- | libar2simplified.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libar2simplified.h b/libar2simplified.h index 02a27ec..55eb123 100644 --- a/libar2simplified.h +++ b/libar2simplified.h @@ -4,6 +4,10 @@ #include <libar2.h> +/* These are useful when the database stores parameters and + * hash separately, when the application uses a pepper, or + * when composing multiple hash functions: */ + LIBAR2_PUBLIC__ LIBAR2_NONNULL__(1) char *libar2simplified_encode(const struct libar2_argon2_parameters *params, void *hash); @@ -17,4 +21,9 @@ libar2simplified_decode(const char *str, char **tagp, char **endp, int (*random_ LIBAR2_PUBLIC__ LIBAR2_NONNULL__(1, 4) int libar2simplified_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameters *params); +/* This one is useful you just want to do it crypt(3)-style: */ + +LIBAR2_PUBLIC__ LIBAR2_NONNULL__(1, 2) +char *libar2simplified_crypt(char *msg, const char *params, char *rv); + #endif |