]> git.codecow.com Git - Monocypher.git/commit
Tidied up sliding windows, minor cosmetic nitpicks
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 16 Oct 2019 22:14:11 +0000 (00:14 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 16 Oct 2019 22:14:11 +0000 (00:14 +0200)
commit2444df6e4cb774cc2421e70c8f2cfdb3ac6c8a5d
tree8ea540f2fcf4c55b92917eb024614d58b18d8ea1
parent43a8ae62133ef593b951d482e9229c966e9b185f
Tidied up sliding windows, minor cosmetic nitpicks

Added `static` to the sliding window functions, reworked those functions
a bit to improve the (internal) API.  Simplified the double scalarmult
accordingly.

Added FOR_T macro, for when the index should be a type other than
size_t.  Helped remove explicit conversions in Argon2i and sliding
windows.  Hopefully this new macro will be obvious to reviewers.  I
could have used the regular `for` loop, but it took too much horizontal
space in Argon2i (we use long names there).
src/monocypher.c