diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-01-28 14:33:08 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-01-28 14:33:08 +0900 |
commit | bd7ac530cf835d3f78cbc6ba1ff6c034cc526e02 (patch) | |
tree | f2661c661d2925ca661d779f8c9e71972da9f64c /tests/t-kdf.c | |
parent | b5a049b0edd34d92d9b8a1bc1078bfed9a2d0815 (diff) | |
download | libgcrypt-gniibe/t5797.tar.gz |
kdf: Support ARGON2I and ARGON2ID.gniibe/t5797
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests/t-kdf.c')
-rw-r--r-- | tests/t-kdf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t-kdf.c b/tests/t-kdf.c index 7963b36d..2aa3b5fb 100644 --- a/tests/t-kdf.c +++ b/tests/t-kdf.c @@ -1376,7 +1376,7 @@ check_argon2 (void) const unsigned char ad[12] = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 }; unsigned char out[32]; unsigned char expected[32] = { -#if 1 +#if 0 0x51, 0x2b, 0x39, 0x1b, 0x6f, 0x11, 0x62, 0x97, 0x53, 0x71, 0xd3, 0x09, 0x19, 0x73, 0x42, 0x94, 0xf8, 0x68, 0xe3, 0xbe, 0x39, 0x84, 0xf3, 0xc1, @@ -1396,7 +1396,7 @@ check_argon2 (void) int i; err = my_kdf_derive (0, - GCRY_KDF_ARGON2, GCRY_KDF_ARGON2D, param, 4, + GCRY_KDF_ARGON2, GCRY_KDF_ARGON2ID, param, 4, pass, 32, salt, 16, key, 8, ad, 12, 32, out); if (err) @@ -1412,7 +1412,7 @@ check_argon2 (void) #ifdef HAVE_PTHREAD err = my_kdf_derive (1, - GCRY_KDF_ARGON2, GCRY_KDF_ARGON2D, param, 5, + GCRY_KDF_ARGON2, GCRY_KDF_ARGON2ID, param, 5, pass, 32, salt, 16, key, 8, ad, 12, 32, out); if (err) |