aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-05 12:47:03 +0100
committerGravatar Sadie Powell2024-09-05 12:47:03 +0100
commit1f65eb8efc7583b399df3ebed9288eb72f41b4c4 (patch)
tree5bb977021940e12ebdbb6c0eb71b8a9a7657e050 /src/modules
parentMake the <define> options in the example config actually useful. (diff)
Fix needlessly separating threads and lanes in the argon2 module.
We were not using these correctly and Argon2 uses the thread count as the lane count anyway so its pointless to even have a setting for this.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_argon2.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/extra/m_argon2.cpp b/src/modules/extra/m_argon2.cpp
index 999bd7d82..e402eaea7 100644
--- a/src/modules/extra/m_argon2.cpp
+++ b/src/modules/extra/m_argon2.cpp
@@ -35,7 +35,6 @@ class ProviderConfig final
{
public:
uint32_t iterations;
- uint32_t lanes;
uint32_t memory;
uint32_t outlen;
uint32_t saltlen;
@@ -53,9 +52,6 @@ public:
uint32_t def_iterations = def ? def->iterations : 3;
this->iterations = tag->getNum<uint32_t>("iterations", def_iterations, 1);
- uint32_t def_lanes = def ? def->lanes : 1;
- this->lanes = tag->getNum<uint32_t>("lanes", def_lanes, ARGON2_MIN_LANES, ARGON2_MAX_LANES);
-
uint32_t def_memory = def ? def->memory : 131072; // 128 MiB
this->memory = tag->getNum<uint32_t>("memory", def_memory, ARGON2_MIN_MEMORY, ARGON2_MAX_MEMORY);
@@ -98,7 +94,7 @@ public:
size_t encodedLen = argon2_encodedlen(
config.iterations,
config.memory,
- config.lanes,
+ config.threads,
config.saltlen,
config.outlen,
argon2Type);