]> git.codecow.com Git - Monocypher.git/commit
Restore simple fe_frombytes()
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 19 Apr 2022 21:01:49 +0000 (23:01 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 19 Apr 2022 21:01:49 +0000 (23:01 +0200)
commitba865a08711e3139fdf86592230d225afba5c7db
tree726c4c85e0790ff9656148467bf06f3db1a76db4
parent303016ed6c54a00776a6853fb4d6667a302753b7
Restore simple fe_frombytes()

Though I think the option of choosing how many bits we mask off at the
end is useful, it made the code more confusing. Better leave it for the
one case where we really need it: parsing Elligator representatives,
which are represented with one less bit than usual.

This does cost us 4 lines of code, but I think they're worth it. The
previous code was too much like code golf for my comfort.
src/monocypher.c