diff options
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r-- | src/cli/speed.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index ed39827e5..b643bd605 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -694,10 +694,10 @@ class Speed final : public Command while(ka_timer.under(msec)) { - Botan::SymmetricKey key1 = ka_timer.run([&] { return ka1.derive_key(32, ka2_pub); }); - Botan::SymmetricKey key2 = ka_timer.run([&] { return ka2.derive_key(32, ka1_pub); }); + Botan::SymmetricKey symkey1 = ka_timer.run([&] { return ka1.derive_key(32, ka2_pub); }); + Botan::SymmetricKey symkey2 = ka_timer.run([&] { return ka2.derive_key(32, ka1_pub); }); - if(key1 != key2) + if(symkey1 != symkey1) { error_output() << "Key agreement mismatch in PK bench\n"; } |