diff options
author | Jack Lloyd <[email protected]> | 2020-10-01 19:01:58 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-10-01 19:01:58 -0400 |
commit | 4e23b5b8a4c5c2f684551a48bbc8f942e56d8848 (patch) | |
tree | f4132611eae858a73c376b9da468fab68de47639 /src/cli | |
parent | 6e6e2f03dbd30072d17828231a471c0be1844c02 (diff) |
Fix build problem
I have no idea why preceeding commit broke this code
Diffstat (limited to 'src/cli')
-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"; } |