Skip to content

Commit

Permalink
Fix double execution
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt committed Oct 29, 2023
1 parent 0a3bb36 commit 2e6a3e5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/crypto/crypto_argon2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,6 @@ Maybe<bool> Argon2Traits::AdditionalConfig(
params->memcost = args[offset + 7].As<Uint32>()->Value();
params->keylen = args[offset + 8].As<Uint32>()->Value();

if (!argon2_hash(params->kdf,
params->pass.data<char>(),
params->pass.size(),
params->salt.data<char>(),
params->salt.size(),
params->secret.data<char>(),
params->secret.size(),
params->ad.data<char>(),
params->ad.size(),
params->iter,
params->lanes,
params->memcost,
nullptr,
params->keylen)) {
THROW_ERR_CRYPTO_INVALID_ARGON2_PARAMS(env);
return Nothing<bool>();
}

return Just(true);
}

Expand Down

0 comments on commit 2e6a3e5

Please sign in to comment.