diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-21 17:12:20 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-21 17:12:20 +0200 |
| commit | b29f4153e83623f24bebe99976e1368ef31bb008 (patch) | |
| tree | 65473709df1194a2f9277dc5fb47add5e41430c0 /argon2/hash.c | |
| parent | Add (so far untested and undocument) support for pepper (diff) | |
| download | librecrypt-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 'argon2/hash.c')
| -rw-r--r-- | argon2/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/argon2/hash.c b/argon2/hash.c index e498d35..949841b 100644 --- a/argon2/hash.c +++ b/argon2/hash.c @@ -108,7 +108,7 @@ librecrypt__argon2__hash(char *restrict out_buffer, size_t size, const char *phr (void) ctx; /* Parse `settings` */ - r = librecrypt_scan_settings_(settings, prefix, + r = librecrypt_scan_settings(settings, prefix, "$argon2%^s$%^sm=%^p,t=%^p,p=%^p$%&b$%^h", &type, "id", "i", "ds", "d", NULL, /* order partially matters */ &version, "v=19$", "v=16$", "", NULL, /* empty string last */ @@ -215,7 +215,7 @@ librecrypt__argon2__hash(char *restrict out_buffer, size_t size, const char *phr default: abort(); /* $covered$ (impossible) */ } - pepper = librecrypt_context_get_pepper_(ctx, algo, 0u); + pepper = librecrypt_get_pepper_(ctx, algo, 0u); no_pepper: params.t_cost = (uint_least32_t)tcost; params.m_cost = (uint_least32_t)mcost; |
