Skip to content

Commit 8e511e0

Browse files
committed
std.crypto.salsa20: Disable some tests on RISC-V with vector support
#24299
1 parent 1c9d9b7 commit 8e511e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/std/crypto/salsa20.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ pub const SealedBox = struct {
557557
const htest = @import("test.zig");
558558

559559
test "(x)salsa20" {
560+
if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
561+
560562
const key = [_]u8{0x69} ** 32;
561563
const nonce = [_]u8{0x42} ** 8;
562564
const msg = [_]u8{0} ** 20;
@@ -600,6 +602,8 @@ test "xsalsa20poly1305 secretbox" {
600602
}
601603

602604
test "xsalsa20poly1305 box" {
605+
if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
606+
603607
var msg: [100]u8 = undefined;
604608
var msg2: [msg.len]u8 = undefined;
605609
var nonce: [Box.nonce_length]u8 = undefined;
@@ -614,6 +618,8 @@ test "xsalsa20poly1305 box" {
614618
}
615619

616620
test "xsalsa20poly1305 sealedbox" {
621+
if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
622+
617623
var msg: [100]u8 = undefined;
618624
var msg2: [msg.len]u8 = undefined;
619625
var boxed: [msg.len + SealedBox.seal_length]u8 = undefined;

0 commit comments

Comments
 (0)