boringssl/crypto/curve25519
David Benjamin 302bb3964a Small curve25519 cleanups.
Per Brian, x25519_ge_frombytes_vartime does not match the usual
BoringSSL return value convention, and we're slightly inconsistent about
whether to mask the last byte with 63 or 127. (It then gets ANDed with
64, so it doesn't matter which.) Use 127 to align with the curve25519
RFC. Finally, when we invert the transformation, use the same constants
inverted so that they're parallel.

Bug: 243, 244
Change-Id: I0e3aca0433ead210446c58d86b2f57526bde1eac
Reviewed-on: https://boringssl-review.googlesource.com/27984
Reviewed-by: Adam Langley <agl@google.com>
2018-05-02 19:24:00 +00:00
..
asm Remove x86_64 x25519 assembly. 2018-02-01 21:44:58 +00:00
CMakeLists.txt Remove x86_64 x25519 assembly. 2018-02-01 21:44:58 +00:00
ed25519_test.cc Require that Ed25519 |s| values be < order. 2018-02-02 20:45:08 +00:00
ed25519_tests.txt Import additional test vectors from RFC 8032. 2017-03-30 16:28:55 +00:00
spake25519_test.cc Move curve25519 code to third_party/fiat. 2017-11-03 22:23:59 +00:00
spake25519.c Small curve25519 cleanups. 2018-05-02 19:24:00 +00:00
x25519_test.cc Add a test driver for Wycheproof's x25519_test.json. 2018-04-27 18:55:38 +00:00