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" {...@@ -1677,7 +1677,7 @@ test "Test inner PKE" {
1677 p.* = @as(u8, @intCast(i + 32));1677 p.* = @as(u8, @intCast(i + 32));
1678 }1678 }
1679 inline for (modes) |mode| {1679 inline for (modes) |mode| {
1680 for (0..100) |i| {1680 for (0..10) |i| {
1681 var pk: mode.InnerPk = undefined;1681 var pk: mode.InnerPk = undefined;
1682 var sk: mode.InnerSk = undefined;1682 var sk: mode.InnerSk = undefined;
1683 seed[0] = @as(u8, @intCast(i));1683 seed[0] = @as(u8, @intCast(i));
...@@ -1696,7 +1696,7 @@ test "Test happy flow" {...@@ -1696,7 +1696,7 @@ test "Test happy flow" {
1696 s.* = @as(u8, @intCast(i));1696 s.* = @as(u8, @intCast(i));
1697 }1697 }
1698 inline for (modes) |mode| {1698 inline for (modes) |mode| {
1699 for (0..100) |i| {1699 for (0..10) |i| {
1700 seed[0] = @as(u8, @intCast(i));1700 seed[0] = @as(u8, @intCast(i));
1701 const kp = try mode.KeyPair.create(seed);1701 const kp = try mode.KeyPair.create(seed);
1702 const sk = try mode.SecretKey.fromBytes(&kp.secret_key.toBytes());1702 const sk = try mode.SecretKey.fromBytes(&kp.secret_key.toBytes());