aboutsummaryrefslogtreecommitdiff
path: root/lib/Utils.Cryptography/monocypher/argon2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Utils.Cryptography/monocypher/argon2.c')
-rw-r--r--lib/Utils.Cryptography/monocypher/argon2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Utils.Cryptography/monocypher/argon2.c b/lib/Utils.Cryptography/monocypher/argon2.c
index 9b13ce0..2606e73 100644
--- a/lib/Utils.Cryptography/monocypher/argon2.c
+++ b/lib/Utils.Cryptography/monocypher/argon2.c
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* vnlib_monocypher is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
@@ -18,9 +18,11 @@
#include "argon2.h"
#include <monocypher.h>
+#define ARGON2_WORK_AREA_MULTIPLIER 1024
+
VNLIB_EXPORT uint32_t VNLIB_CC Argon2CalcWorkAreaSize(const argon2Ctx* context)
{
- return context->m_cost * 1024;
+ return context->m_cost * ARGON2_WORK_AREA_MULTIPLIER;
}
/*