authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-03 01:20:48+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-09-02 23:20:48+00:00
log9bcb0e938c6de1d4de6546de57495092a5903536
treecfd3a8f5b2a16680b66ecd136ee8d7ddd7981deb
parenta670f5519568b893f17e1ea06a0646e4726e21ca
signaturebadge-check Signed by PGP key B5690EEEBB952194

std.crypto.ml_kem: Reduce test iteration counts from 100 to 10. (#21285)

Closes #21255.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/crypto/ml_kem.zig+2-2
......@@ -1677,7 +1677,7 @@ test "Test inner PKE" {
16771677 p.* = @as(u8, @intCast(i + 32));
16781678 }
16791679 inline for (modes) |mode| {
1680 for (0..100) |i| {
1680 for (0..10) |i| {
16811681 var pk: mode.InnerPk = undefined;
16821682 var sk: mode.InnerSk = undefined;
16831683 seed[0] = @as(u8, @intCast(i));
......@@ -1696,7 +1696,7 @@ test "Test happy flow" {
16961696 s.* = @as(u8, @intCast(i));
16971697 }
16981698 inline for (modes) |mode| {
1699 for (0..100) |i| {
1699 for (0..10) |i| {
17001700 seed[0] = @as(u8, @intCast(i));
17011701 const kp = try mode.KeyPair.create(seed);
17021702 const sk = try mode.SecretKey.fromBytes(&kp.secret_key.toBytes());