]> git.codecow.com Git - Monocypher.git/commit
Just changing the types on those two resolved everything, and tests
authorSethArchambault <seth@doercreator.com>
Sat, 21 Oct 2023 23:59:11 +0000 (19:59 -0400)
committerLoup Vaillant <github-is-valid@loup-vaillant.fr>
Sun, 22 Oct 2023 22:16:00 +0000 (00:16 +0200)
commit636cc057bc8866213997eef23a190f9ff9ab1fad
tree1bf0a8bf5110445375857f653fe6190f880b7fda
parent67771e5074263d4402d96a37064b6d84933eff7b
Just changing the types on those two resolved everything, and tests
pass!

--- a/src/monocypher.c
+++ b/src/monocypher.c
-u64 lane         =
+u32 lane         =
...
-u64  ref       = (window_start + z) % lane_size;
+u32  ref       = (window_start + z) % lane_size;
-u32  index     = (u32)(lane * lane_size) + (u32)ref;
+u32  index     = lane * lane_size + ref;
src/monocypher.c