]> git.codecow.com Git - Monocypher.git/commit
Removed sliding windows edge cases
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 13 Aug 2018 11:05:39 +0000 (13:05 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 13 Aug 2018 11:05:39 +0000 (13:05 +0200)
commit1fba456dc130d4bf034b6e4b98d1323e24645280
treef2e96baca142336acd48c3d0f02041b9416e2035
parentc5b780a9cc20e0fddc3f9dab289c337a80182fbb
Removed sliding windows edge cases

By making sure the scalar's most significant bits are 0, we remove an
edge case, and can skip the epilogue of the sliding windows.

This adds 2 bytes to the sliding windows representation of the scalars,
but also makes the code smaller and simpler.
src/monocypher.c