authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2024-03-12 20:52:06+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-03-12 19:52:06+00:00
logb8920bceb79756aead8635d156a6e8bffcc1ccea
tree43e537272d5a09fb12351e382fd5624900fbe3da
parentda5b16f9e2b76534b1cab9093566693482084360
signaturebadge-check Signed by PGP key B5690EEEBB952194

ml_kem.zig: inLen -> in_len (#19269)

Don't use camelCase for variable names, especially just for that one.

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

lib/std/crypto/ml_kem.zig+2-2
...@@ -1109,8 +1109,8 @@ const Poly = struct {...@@ -1109,8 +1109,8 @@ const Poly = struct {
1109 // Set p to Decompress_q(m, d).1109 // Set p to Decompress_q(m, d).
1110 fn decompress(comptime d: u8, in: *const [compressedSize(d)]u8) Poly {1110 fn decompress(comptime d: u8, in: *const [compressedSize(d)]u8) Poly {
1111 @setEvalBranchQuota(10000);1111 @setEvalBranchQuota(10000);
1112 const inLen = comptime @divTrunc(N * d, 8);1112 const in_len = comptime @divTrunc(N * d, 8);
1113 comptime assert(inLen * 8 == d * N);1113 comptime assert(in_len * 8 == d * N);
1114 var ret: Poly = undefined;1114 var ret: Poly = undefined;
1115 var in_off: usize = 0;1115 var in_off: usize = 0;
1116 var out_off: usize = 0;1116 var out_off: usize = 0;