aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_settings_prefix.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-21 17:12:20 +0200
committerMattias Andrée <m@maandree.se>2026-05-21 17:12:20 +0200
commitb29f4153e83623f24bebe99976e1368ef31bb008 (patch)
tree65473709df1194a2f9277dc5fb47add5e41430c0 /librecrypt_settings_prefix.c
parentAdd (so far untested and undocument) support for pepper (diff)
downloadlibrecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.gz
librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.bz2
librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.xz
Add support for custom hash functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_settings_prefix.c')
-rw-r--r--librecrypt_settings_prefix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/librecrypt_settings_prefix.c b/librecrypt_settings_prefix.c
index 89bb5ae..fbb8efe 100644
--- a/librecrypt_settings_prefix.c
+++ b/librecrypt_settings_prefix.c
@@ -36,12 +36,12 @@ librecrypt_settings_prefix(const char *hash, size_t *hashsize_out, LIBRECRYPT_CO
if (!algo)
goto zero;
if (!algo->flexible_hash_size)
- goto zero; /* $covered$ (TODO we currently don't have an algorithm to trigger this) */
+ goto zero; /* TODO test with custom hash function */
/* Get the hash size */
- if (!librecrypt_scan_settings_(&hash[ret], len - ret, "%^b",
- &hashsize, (uintmax_t)1u, (uintmax_t)SIZE_MAX,
- algo->decoding_lut, algo->pad, algo->strict_pad))
+ if (!librecrypt_scan_settings(&hash[ret], len - ret, "%^b",
+ &hashsize, (uintmax_t)1u, (uintmax_t)SIZE_MAX,
+ algo->decoding_lut, algo->pad, algo->strict_pad))
goto zero;
*hashsize_out = (size_t)hashsize;