aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_test_supported.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_test_supported.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_test_supported.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/librecrypt_test_supported.c b/librecrypt_test_supported.c
index 6d2a7a6..9cc8bd5 100644
--- a/librecrypt_test_supported.c
+++ b/librecrypt_test_supported.c
@@ -4,13 +4,11 @@
int
-librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings, void *reserved)
+librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings, LIBRECRYPT_CONTEXT *ctx)
{
const struct librecrypt_algorithm *algo;
size_t n;
- (void) reserved;
-
/* For each chained algorithm */
for (;;) {
/* Measure until next '>' */
@@ -19,7 +17,7 @@ librecrypt_test_supported(const char *phrase, size_t len, int text, const char *
break;
/* Identify algorithm */
- algo = librecrypt_find_first_algorithm_(settings, n);
+ algo = librecrypt_find_first_algorithm_(settings, n, ctx);
if (!algo)
return 0;