authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-30 13:24:01+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-30 13:27:25+02:00
log66b43234bb06543fe31502ab75ba958b83b207ac
tree4c2e428371332646e05637365d3ed7131c8ca5c5
parent00719176213d8dce869ba3e7113302803c30e4f4
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: disable `sha3-512 single` test on RISC-V with V support

https://github.com/ziglang/zig/issues/25083

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/crypto/sha3.zig+3
......@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
12const std = @import("std");
23const assert = std.debug.assert;
34const math = std.math;
......@@ -573,6 +574,8 @@ test "sha3-384 streaming" {
573574}
574575
575576test "sha3-512 single" {
577 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/25083
578
576579 const h1 = "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26";
577580 try htest.assertEqualHash(Sha3_512, h1, "");
578581 const h2 = "b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0";