aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_crypto.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2020-06-13 04:45:40 +0300
committerlevlam <levlam@telegram.org>2020-06-13 04:45:40 +0300
commitc68481052a88ab1749aed9c4f6a801936d04a276 (patch)
tree3a1cb0190ec428473a6595baed5a4b354f6e003f /benchmark/bench_crypto.cpp
parentc7bc1d190843b2df2887990954393040f015c936 (diff)
AES CTR improvements.
GitOrigin-RevId: c4ed8fdc883fdf7cc2ed10334d3bb9487d590d41
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 0b313b43a..e861914c5 100644
--- a/benchmark/bench_crypto.cpp
+++ b/benchmark/bench_crypto.cpp
@@ -73,7 +73,7 @@ class AesEcbBench : public td::Benchmark {
for (int i = 0; i <= n; i++) {
size_t step = 16;
for (size_t offset = 0; offset + step <= data_slice.size(); offset += step) {
- state.encrypt(data_slice.ubegin() + offset, data_slice.ubegin() + offset, (int)step);
+ state.encrypt(data_slice.ubegin() + offset, data_slice.ubegin() + offset, static_cast<int>(step));
}
}
}