diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-02-16 14:15:30 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-23 16:02:03 -0800 |
commit | 0d858f1544cfd50f4a63f348d722bb16d638c0b1 (patch) | |
tree | c4fe70955629048828b9fdb4369a667d4f26c515 /test/test_config.h | |
parent | bff020fc6b25fe5dc0245c811d9f53b7c518aa08 (diff) | |
download | chrome-ec-0d858f1544cfd50f4a63f348d722bb16d638c0b1.tar.gz |
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>
Diffstat (limited to 'test/test_config.h')
-rw-r--r-- | test/test_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h index 36bebe8a01..029ce9bd70 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -203,6 +203,10 @@ enum nvmem_users { #define CONFIG_FLASH_NVMEM_VARS_USER_SIZE 600 #endif /* TEST_NVMEM_VARS */ +#ifdef TEST_X25519 +#define CONFIG_CURVE25519 +#endif /* TEST_X25519 */ + #ifndef __ASSEMBLER__ /* Callback function from charge_manager to send host event */ static inline void pd_send_host_event(int mask) { } |