From 2e6a3e535a5748239fa9b5aba559d407cfd239f8 Mon Sep 17 00:00:00 2001 From: Ranieri Althoff Date: Sun, 29 Oct 2023 18:43:59 +0100 Subject: [PATCH] Fix double execution --- src/crypto/crypto_argon2.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/crypto/crypto_argon2.cc b/src/crypto/crypto_argon2.cc index 0cedf838822479..143580b80a725a 100644 --- a/src/crypto/crypto_argon2.cc +++ b/src/crypto/crypto_argon2.cc @@ -164,24 +164,6 @@ Maybe Argon2Traits::AdditionalConfig( params->memcost = args[offset + 7].As()->Value(); params->keylen = args[offset + 8].As()->Value(); - if (!argon2_hash(params->kdf, - params->pass.data(), - params->pass.size(), - params->salt.data(), - params->salt.size(), - params->secret.data(), - params->secret.size(), - params->ad.data(), - params->ad.size(), - params->iter, - params->lanes, - params->memcost, - nullptr, - params->keylen)) { - THROW_ERR_CRYPTO_INVALID_ARGON2_PARAMS(env); - return Nothing(); - } - return Just(true); }