aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_crypt.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-20 23:04:11 +0200
committerMattias Andrée <m@maandree.se>2026-05-20 23:04:11 +0200
commitc35b47228f5494f4d806e9166628110af6dd2469 (patch)
tree3b5a123af999a5e047b8565efee293a5d95c3f6c /librecrypt_crypt.c
parentPrepare for supporting custom algorithms (diff)
downloadlibrecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.gz
librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.bz2
librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.xz
Add (so far untested and undocument) support for pepperHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--librecrypt_crypt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/librecrypt_crypt.c b/librecrypt_crypt.c
index c3f441b..af46520 100644
--- a/librecrypt_crypt.c
+++ b/librecrypt_crypt.c
@@ -4,9 +4,10 @@
ssize_t
-librecrypt_crypt(char *restrict out_buffer, size_t size, const char *phrase, size_t len, const char *settings, void *reserved)
+librecrypt_crypt(char *restrict out_buffer, size_t size, const char *phrase,
+ size_t len, const char *settings, LIBRECRYPT_CONTEXT *ctx)
{
- return librecrypt_hash_(out_buffer, size, phrase, len, settings, reserved, ASCII_CRYPT);
+ return librecrypt_hash_(out_buffer, size, phrase, len, settings, ctx, ASCII_CRYPT);
}