From 97a119da82dc34a52b5a1ae0eef8b55e27f32170 Mon Sep 17 00:00:00 2001 From: tweqx Date: Mon, 23 May 2022 16:53:50 +0200 Subject: [PATCH] In the unit tests, convert the hexdigest to lowercase to match the behavior of 'module_hash_encode' --- tools/test_modules/m00610.pm | 2 +- tools/test_modules/m00620.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test_modules/m00610.pm b/tools/test_modules/m00610.pm index b8f5a224d..61ad8e43b 100644 --- a/tools/test_modules/m00610.pm +++ b/tools/test_modules/m00610.pm @@ -19,7 +19,7 @@ sub module_generate_hash my $digest = blake2b_hex ($word . $salt); - my $hash = sprintf ("\$BLAKE2\$%s:%s", $digest, $salt); + my $hash = sprintf ("\$BLAKE2\$%s:%s", lc ($digest), $salt); return $hash; } diff --git a/tools/test_modules/m00620.pm b/tools/test_modules/m00620.pm index b3a9cba65..6c0c9e714 100644 --- a/tools/test_modules/m00620.pm +++ b/tools/test_modules/m00620.pm @@ -19,7 +19,7 @@ sub module_generate_hash my $digest = blake2b_hex ($salt . $word); - my $hash = sprintf ("\$BLAKE2\$%s:%s", $digest, $salt); + my $hash = sprintf ("\$BLAKE2\$%s:%s", lc ($digest), $salt); return $hash; }