]> git.codecow.com Git - Monocypher.git/commit
Cleaner fe_frombytes() (loading field elements)
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 3 Aug 2018 21:25:55 +0000 (23:25 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 3 Aug 2018 21:25:55 +0000 (23:25 +0200)
commit6ee8787e61b3918789eab0ab38ce176abc767abb
tree39e4503e44d68150532d74ac6c1cb9202c89b9b5
parent40da5face2afdcbfaae05c0bf487cbc145f1a83e
Cleaner fe_frombytes() (loading field elements)

The old version of fe_frombytes() from the ref10 implementation was not
as clean as I wanted it to be: instead of loading exactly the right
bytes, it played fast and loose, then used a carry operation to
compensate.

It works, but there's a more direct, simpler, and I suspect faster
approach: put the right bits in the right place to begin with.
src/monocypher.c