diff options
| author | data-man <datamanrb@gmail.com> | 2019-12-07 03:01:24 +0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-06 17:14:10 -0500 |
| commit | 80a72c225cf2a08e683936921dfda07f93cef1b8 (patch) | |
| tree | f6688dc6f99046251dde5e088eda126dd03c4a26 /lib/std/crypto | |
| parent | 008e42f48351453b2174b361847c5470e6216fa5 (diff) | |
| download | zig-80a72c225cf2a08e683936921dfda07f93cef1b8.tar.gz zig-80a72c225cf2a08e683936921dfda07f93cef1b8.zip | |
Crypto benchmark fixes
Diffstat (limited to 'lib/std/crypto')
| -rw-r--r-- | lib/std/crypto/benchmark.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/crypto/benchmark.zig b/lib/std/crypto/benchmark.zig index 05edae0b9b..80615fd5c5 100644 --- a/lib/std/crypto/benchmark.zig +++ b/lib/std/crypto/benchmark.zig @@ -1,7 +1,7 @@ // zig run benchmark.zig --release-fast --override-lib-dir .. const builtin = @import("builtin"); -const std = @import("../std.zig"); +const std = @import("std"); const time = std.time; const Timer = time.Timer; const crypto = std.crypto; @@ -67,7 +67,7 @@ pub fn benchmarkMac(comptime Mac: var, comptime bytes: comptime_int) !u64 { var timer = try Timer.start(); const start = timer.lap(); while (offset < bytes) : (offset += in.len) { - Mac.create(key[0..], in[0..], key); + Mac.create(key[0..], in[0..], key[0..]); } const end = timer.read(); @@ -94,7 +94,7 @@ pub fn benchmarkKeyExchange(comptime DhKeyExchange: var, comptime exchange_count { var i: usize = 0; while (i < exchange_count) : (i += 1) { - _ = DhKeyExchange.create(out[0..], out, in); + _ = DhKeyExchange.create(out[0..], out[0..], in[0..]); } } const end = timer.read(); |
