aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto/scrypt.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-10-22 08:06:47 -0400
committerGitHub <noreply@github.com>2023-10-22 08:06:47 -0400
commit0c99ba1eab63865592bb084feb271cd4e4b0357e (patch)
tree7004c99fc0619ff94317cc176900d1d3a3c88335 /lib/std/crypto/scrypt.zig
parent5f92b070bf284f1493b1b5d433dd3adde2f46727 (diff)
parent920e9668ddb16fbb98cd08b43ed2364062a4b102 (diff)
downloadzig-0c99ba1eab63865592bb084feb271cd4e4b0357e.tar.gz
zig-0c99ba1eab63865592bb084feb271cd4e4b0357e.zip
Merge pull request #17637 from jacobly0/x86_64-test-std
x86_64: start to enable `test-std` and `test-compiler-rt` testing
Diffstat (limited to 'lib/std/crypto/scrypt.zig')
-rw-r--r--lib/std/crypto/scrypt.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/crypto/scrypt.zig b/lib/std/crypto/scrypt.zig
index 8745a3b34e..f830e8f120 100644
--- a/lib/std/crypto/scrypt.zig
+++ b/lib/std/crypto/scrypt.zig
@@ -3,6 +3,7 @@
// https://github.com/Tarsnap/scrypt
const std = @import("std");
+const builtin = @import("builtin");
const crypto = std.crypto;
const fmt = std.fmt;
const io = std.io;
@@ -683,6 +684,8 @@ test "unix-scrypt" {
}
test "crypt format" {
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+
const str = "$7$C6..../....SodiumChloride$kBGj9fHznVYFQMEn/qDCfrDevf9YDtcDdKvEqHJLV8D";
const params = try crypt_format.deserialize(crypt_format.HashResult(32), str);
var buf: [str.len]u8 = undefined;
@@ -691,6 +694,8 @@ test "crypt format" {
}
test "kdf fast" {
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+
const TestVector = struct {
password: []const u8,
salt: []const u8,