aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_crypto.cpp
diff options
context:
space:
mode:
authorArseny Smirnov <arseny30@gmail.com>2020-06-16 17:57:19 +0300
committerArseny Smirnov <arseny30@gmail.com>2020-06-16 17:57:19 +0300
commit005611e92463ca6169666bfc81237d93842bc87f (patch)
tree55da5dd49bb64c4b0ff99e012ffcea298a8d56ab /benchmark/bench_crypto.cpp
parent86ca096840f333b5a0eb2b782124c1f792cde864 (diff)
Refactor td::AesState::Impl
GitOrigin-RevId: 5731ddc8d85c912cbfb141bd4e5eefea22d8ab21
Diffstat (limited to 'benchmark/bench_crypto.cpp')
-rw-r--r--benchmark/bench_crypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/bench_crypto.cpp b/benchmark/bench_crypto.cpp
index a1eb74aa7..b94402aec 100644
--- a/benchmark/bench_crypto.cpp
+++ b/benchmark/bench_crypto.cpp
@@ -211,9 +211,9 @@ class AesIgeShortBench : public td::Benchmark {
void run(int n) override {
td::MutableSlice data_slice(data, SHORT_DATA_SIZE);
- td::AesIgeState ige;
for (int i = 0; i < n; i++) {
if (use_state) {
+ td::AesIgeState ige;
ige.init(as_slice(key), as_slice(iv), false);
ige.decrypt(data_slice, data_slice);
} else {