chrome-ec/builtin
Vincent Palatin b628bbd3ca curve25519: strip-down, build and test
Keep only the most compact version of the curve25519 code
and remove the remaining unused code for easier compilation.
Do the minimal changes to make it compile in the EC code base,
there should be no real functional changes.

Re-use the wording from BoringSSL include/openssl/curve25519.h for the
header.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=none
BUG=chrome-os-partner:62991
TEST=run x25519 on host (ie 'make run-x25519')
and the STM32L4 target:
make BOARD=eve_fp PROJECT=x25519 TEST_BUILD=y
./util/flash_ec --board=eve_fp --image=build/eve_fp/x25519.bin
execute 'runtest' in the console.

Change-Id: I13dbe453eff39b461effb1b3ffa549afc1749fef
Reviewed-on: https://chromium-review.googlesource.com/444187
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit 0d858f1544)
Reviewed-on: https://chromium-review.googlesource.com/734796
Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2017-10-24 01:54:06 +00:00
..
assert.h CR50: remove dependence of assert.h on util.h 2016-05-25 18:51:07 -07:00
endian.h Move include/byteorder.h -> builtin/endian.h 2016-04-22 20:40:03 -07:00
stdarg.h Enforce compilation without system headers 2016-02-03 15:00:50 -08:00
stdbool.h Added "stdbool.h" and definition of uint_least8_t to "stdint.h". 2016-10-17 17:41:06 -07:00
stddef.h Adding offsetof macro to stddef.h. 2016-10-26 19:59:17 -07:00
stdint.h curve25519: strip-down, build and test 2017-10-24 01:54:06 +00:00
string.h builtin: Expands string.h / stdint.h 2017-02-17 01:46:31 +00:00
time.h Enforce compilation without system headers 2016-02-03 15:00:50 -08:00