mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.crypto.ml_kem: disable some Kyber tests on LoongArch with LSX
LLVM miscompiles these.
This commit is contained in:
parent
9095a7fefd
commit
c8c3882380
1 changed files with 6 additions and 0 deletions
|
|
@ -1722,14 +1722,20 @@ test "Test happy flow" {
|
|||
// Code to test NIST Known Answer Tests (KAT), see PQCgenKAT.c.
|
||||
|
||||
test "NIST KAT test d00.Kyber512" {
|
||||
if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
|
||||
|
||||
try testNistKat(d00.Kyber512, "e9c2bd37133fcb40772f81559f14b1f58dccd1c816701be9ba6214d43baf4547");
|
||||
}
|
||||
|
||||
test "NIST KAT test d00.Kyber1024" {
|
||||
if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
|
||||
|
||||
try testNistKat(d00.Kyber1024, "89248f2f33f7f4f7051729111f3049c409a933ec904aedadf035f30fa5646cd5");
|
||||
}
|
||||
|
||||
test "NIST KAT test d00.Kyber768" {
|
||||
if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
|
||||
|
||||
try testNistKat(d00.Kyber768, "a1e122cad3c24bc51622e4c242d8b8acbcd3f618fee4220400605ca8f9ea02c2");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue