diff options
-rw-r--r-- | src/cli/speed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 09ad76d95..6e662eb0a 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -1672,9 +1672,9 @@ class Speed final : public Command if(dec_timer->under(msec)) { - auto dec_pt = dec_timer->run([&]() { return dec.decrypt(ciphertext); }); + const auto dec_pt = dec_timer->run([&]() { return dec.decrypt(ciphertext); }); - if(dec_pt != plaintext) // sanity check + if(!(dec_pt == plaintext)) // sanity check { error_output() << "Bad roundtrip in PK encrypt/decrypt bench\n"; } |