aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/speed.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-06-29 16:16:21 -0400
committerJack Lloyd <[email protected]>2019-06-29 17:11:19 -0400
commit8b8745236368c70a82db2b19feeed5e9f9b59c5b (patch)
tree1495a04a7e6f117e2cacd69ff0f7b2c4a31ddee9 /src/cli/speed.cpp
parent5922b1c3abf00c0e22e86498e1ee3a51e5343b0f (diff)
Fix various MSVC warnings
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r--src/cli/speed.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index a481ec16a..f198c3e63 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -2211,6 +2211,8 @@ class Speed final : public Command
void bench_argon2(const std::string& /*provider*/,
std::chrono::milliseconds msec)
{
+ const uint8_t mode = 2; // Argon2id
+
for(size_t M : { 8*1024, 64*1024, 256*1024 })
{
for(size_t t : { 1, 2, 4 })
@@ -2220,7 +2222,6 @@ class Speed final : public Command
std::unique_ptr<Timer> timer = make_timer(
"Argon2id M=" + std::to_string(M) + " t=" + std::to_string(t) + " p=" + std::to_string(p));
- const size_t mode = 2;
uint8_t out[64];
uint8_t salt[16];
rng().randomize(salt, sizeof(salt));