]> git.codecow.com Git - Monocypher.git/commit
Moved trim_scalar() and scalar_bits() up a slot
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 29 Jul 2019 22:30:22 +0000 (00:30 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 29 Jul 2019 22:30:22 +0000 (00:30 +0200)
commita7e2ce5144f6b964a5f4cf3364a9c91c761919f5
treeccfffb843c8d01d5e86b59d51f0a182a0c0238e5
parentf605cfbdb9492f543e35aa32d97331fa64f6ce05
Moved trim_scalar() and scalar_bits() up a slot

Those functions are used for both X25519 and EdDSA. Moving them up one
section makes it easier for user to delete the X-25519 section without
affecting EdDSA.

(Overall, Monocypher should let users delete the code they don't
need. This wasn't an explicit goal initially, but the code naturally
turned out that way.  Supporting this use case cost us nothing.)
src/monocypher.c