authorgravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2020-09-07 22:07:34+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-09-08 12:54:28-04:00
logb8b68cb279e8f51a8aa7c67aa42cefc644375b74
treeceb53b69ff40a1539b6973380ac69a0560c35ad1
parent8716fde7bcb2fa472438e936128cb8f8512680ab

std: clean up bitrotten imports in crypto


9 files changed, 23 insertions(+), 31 deletions(-)

lib/std/crypto/benchmark.zig+2-2
......@@ -5,8 +5,8 @@
55// and substantial portions of the software.
66// zig run benchmark.zig --release-fast --override-lib-dir ..
77
8const builtin = @import("builtin");
9const std = @import("std");
8const std = @import("../std.zig");
9const builtin = std.builtin;
1010const mem = std.mem;
1111const time = std.time;
1212const Timer = time.Timer;
lib/std/crypto/blake2.zig+4-4
......@@ -3,10 +3,10 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const mem = @import("../mem.zig");
7const builtin = @import("builtin");
8const debug = @import("../debug.zig");
9const math = @import("../math.zig");
6const std = @import("../std.zig");
7const mem = std.mem;
8const math = std.math;
9const debug = std.debug;
1010const htest = @import("test.zig");
1111
1212const RoundParam = struct {
lib/std/crypto/chacha20.zig-2
......@@ -7,10 +7,8 @@
77
88const std = @import("../std.zig");
99const mem = std.mem;
10const endian = std.endian;
1110const assert = std.debug.assert;
1211const testing = std.testing;
13const builtin = @import("builtin");
1412const maxInt = std.math.maxInt;
1513const Poly1305 = std.crypto.onetimeauth.Poly1305;
1614
lib/std/crypto/md5.zig+4-6
......@@ -3,12 +3,10 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const mem = @import("../mem.zig");
7const math = @import("../math.zig");
8const endian = @import("../endian.zig");
9const builtin = @import("builtin");
10const debug = @import("../debug.zig");
11const fmt = @import("../fmt.zig");
6const std = @import("../std.zig");
7const mem = std.mem;
8const math = std.math;
9const debug = std.debug;
1210
1311const RoundParam = struct {
1412 a: usize,
lib/std/crypto/poly1305.zig+1-1
......@@ -3,7 +3,7 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const std = @import("std");
6const std = @import("../std.zig");
77const mem = std.mem;
88
99pub const Poly1305 = struct {
lib/std/crypto/sha1.zig+4-5
......@@ -3,11 +3,10 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const mem = @import("../mem.zig");
7const math = @import("../math.zig");
8const endian = @import("../endian.zig");
9const debug = @import("../debug.zig");
10const builtin = @import("builtin");
6const std = @import("../std.zig");
7const mem = std.mem;
8const math = std.math;
9const debug = std.debug;
1110
1211const RoundParam = struct {
1312 a: usize,
lib/std/crypto/sha2.zig+4-5
......@@ -3,11 +3,10 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const mem = @import("../mem.zig");
7const math = @import("../math.zig");
8const endian = @import("../endian.zig");
9const debug = @import("../debug.zig");
10const builtin = @import("builtin");
6const std = @import("../std.zig");
7const mem = std.mem;
8const math = std.math;
9const debug = std.debug;
1110const htest = @import("test.zig");
1211
1312/////////////////////
lib/std/crypto/sha3.zig+4-5
......@@ -3,11 +3,10 @@
33// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
6const mem = @import("../mem.zig");
7const math = @import("../math.zig");
8const endian = @import("../endian.zig");
9const debug = @import("../debug.zig");
10const builtin = @import("builtin");
6const std = @import("../std.zig");
7const mem = std.mem;
8const math = std.math;
9const debug = std.debug;
1110const htest = @import("test.zig");
1211
1312pub const Sha3_224 = Keccak(224, 0x06);
lib/std/crypto/test.zig-1
......@@ -5,7 +5,6 @@
55// and substantial portions of the software.
66const std = @import("../std.zig");
77const testing = std.testing;
8const mem = std.mem;
98const fmt = std.fmt;
109
1110// Hash using the specified hasher `H` asserting `expected == H(input)`.