From aff22d5d2f207a6b57f7f1a2b29a9b69f82e2fd7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 May 2026 21:32:38 +0200 Subject: Add test and fix a bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- argon2/hash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'argon2/hash.c') diff --git a/argon2/hash.c b/argon2/hash.c index 5d56479..c964455 100644 --- a/argon2/hash.c +++ b/argon2/hash.c @@ -202,8 +202,10 @@ librecrypt__argon2__hash(char *restrict out_buffer, size_t size, const char *phr algo_v10 = LIBRECRYPT_ARGON2DS_V1_0; algo_v13 = LIBRECRYPT_ARGON2DS_V1_3; break; + /* $covered{$ (impossible) */ default: - abort(); /* $covered$ (impossible) */ + abort(); + /* $covered}$ */ } switch (params.version) { case LIBAR2_ARGON2_VERSION_10: @@ -212,8 +214,10 @@ librecrypt__argon2__hash(char *restrict out_buffer, size_t size, const char *phr case LIBAR2_ARGON2_VERSION_13: algo = algo_v13; break; + /* $covered{$ (impossible) */ default: - abort(); /* $covered$ (impossible) */ + abort(); + /* $covered}$ */ } pepper = librecrypt_get_pepper_(ctx, algo, 0u); no_pepper: -- cgit v1.3.1