aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto/poly1305.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-09 14:04:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-09 19:47:06 -0700
commit54151428e5236a0612fe36837ed5a6c1e28aec7a (patch)
tree89e3fda0a275c3e6aa94f9f03a7050fcba30bd72 /lib/std/crypto/poly1305.zig
parentae5bf2faabfe949e2cb94a230e79614c7eafd84a (diff)
downloadzig-54151428e5236a0612fe36837ed5a6c1e28aec7a.tar.gz
zig-54151428e5236a0612fe36837ed5a6c1e28aec7a.zip
std.crypto: better names for everything in utils
std.crypto has quite a few instances of breaking naming conventions. This is the beginning of an effort to address that. Deprecates `std.crypto.utils`.
Diffstat (limited to 'lib/std/crypto/poly1305.zig')
-rw-r--r--lib/std/crypto/poly1305.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/crypto/poly1305.zig b/lib/std/crypto/poly1305.zig
index 3aa3d5b78f..254e19ae02 100644
--- a/lib/std/crypto/poly1305.zig
+++ b/lib/std/crypto/poly1305.zig
@@ -1,5 +1,4 @@
const std = @import("../std.zig");
-const utils = std.crypto.utils;
const mem = std.mem;
const mulWide = std.math.mulWide;
@@ -185,7 +184,7 @@ pub const Poly1305 = struct {
mem.writeInt(u64, out[0..8], st.h[0], .little);
mem.writeInt(u64, out[8..16], st.h[1], .little);
- utils.secureZero(u8, @as([*]u8, @ptrCast(st))[0..@sizeOf(Poly1305)]);
+ std.crypto.secureZero(u8, @as([*]u8, @ptrCast(st))[0..@sizeOf(Poly1305)]);
}
pub fn create(out: *[mac_length]u8, msg: []const u8, key: *const [key_length]u8) void {