aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-22 02:04:48 -0700
committerGitHub <noreply@github.com>2024-03-22 02:04:48 -0700
commitd8bb139da44d9140fd8992608fcbbddcd1816889 (patch)
treea6277199a72ae9ae6265c7b2dd8274d8e54d220a /lib/std/crypto
parenta2651cbc829d44df4c3773037598b30e8cf0c4da (diff)
parent90c94a2f0b7ce71aae1b69cf9e7b517c3a771906 (diff)
downloadzig-d8bb139da44d9140fd8992608fcbbddcd1816889.tar.gz
zig-d8bb139da44d9140fd8992608fcbbddcd1816889.zip
Merge pull request #19390 from ziglang/valgrind
make the behavior tests run almost valgrind clean
Diffstat (limited to 'lib/std/crypto')
-rw-r--r--lib/std/crypto/utils.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/crypto/utils.zig b/lib/std/crypto/utils.zig
index 37f2b06a5e..fd5544c45b 100644
--- a/lib/std/crypto/utils.zig
+++ b/lib/std/crypto/utils.zig
@@ -138,7 +138,7 @@ pub inline fn secureZero(comptime T: type, s: []T) void {
@memset(@as([]volatile T, s), 0);
}
-test "timingSafeEql" {
+test timingSafeEql {
var a: [100]u8 = undefined;
var b: [100]u8 = undefined;
random.bytes(a[0..]);
@@ -162,7 +162,7 @@ test "timingSafeEql (vectors)" {
try testing.expect(timingSafeEql(@Vector(100, u8), v1, v3));
}
-test "timingSafeCompare" {
+test timingSafeCompare {
var a = [_]u8{10} ** 32;
var b = [_]u8{10} ** 32;
try testing.expectEqual(timingSafeCompare(u8, &a, &b, .big), .eq);
@@ -195,7 +195,7 @@ test "timingSafe{Add,Sub}" {
}
}
-test "secureZero" {
+test secureZero {
var a = [_]u8{0xfe} ** 8;
var b = [_]u8{0xfe} ** 8;