diff options
author | Jack Lloyd <[email protected]> | 2016-09-01 13:19:12 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-09-01 13:20:05 -0400 |
commit | fc4b34d9d23c1afedaa71835c7af8f397c51c56d (patch) | |
tree | d933804ebcebfa5689aa0f41b012596615f7ec5b /src/cli/speed.cpp | |
parent | e358acf9e3fd74e7dc307a203977652ca3a9a3c9 (diff) |
4x interleaved SSE2
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r-- | src/cli/speed.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 222a98d3f..c1f3a91e8 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -521,10 +521,11 @@ class Speed final : public Command Timer encrypt_timer(cipher.name(), provider, "encrypt", buffer.size()); + const Botan::SymmetricKey key(rng(), cipher.maximum_keylength()); + cipher.set_key(key); + while(encrypt_timer.under(runtime)) { - const Botan::SymmetricKey key(rng(), cipher.maximum_keylength()); - cipher.set_key(key); encrypt_timer.run([&] { cipher.encipher(buffer); }); } |