diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-06-21 10:03:22 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-29 01:16:19 -0700 |
commit | f7c89fc709daee2fb1474d3f918c11a4a0b71daa (patch) | |
tree | 21bac9d5df8f0ee40a98d5960ab75f32ca362ebd /test | |
parent | 2e3b42610b1239e8643d58396b7471b73e3989f6 (diff) | |
download | chrome-ec-f7c89fc709daee2fb1474d3f918c11a4a0b71daa.tar.gz |
test/x25519: First test speed, then test implementation
Makes it easier to tune implementation speed.
BRANCH=none
BUG=b:62813194
TEST=- Increase CONFIG_RO_SIZE to 60kb
- Increase console stack size to 2048
- Define CONFIG_CURVE25519_CORTEXM0 (next patch)
make BOARD=hammer PROJECT=x25519 TEST_BUILD=y
./util/flash_ec --board=hammer --image=build/hammer/x25519.bin
EC console: runtest
Change-Id: I9097e326a3772b2e05f9b90a68ac715ed467c442
Reviewed-on: https://chromium-review.googlesource.com/542636
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/x25519.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/x25519.c b/test/x25519.c index 7f6f70f16c..07faafaae2 100644 --- a/test/x25519.c +++ b/test/x25519.c @@ -154,14 +154,15 @@ static void test_x25519_speed(void) void run_test(void) { watchdog_reload(); + /* do not check speed, just as a benchmark */ + test_x25519_speed(); + + watchdog_reload(); if (!test_x25519() || !test_x25519_iterated() || !test_x25519_small_order()) { test_fail(); return; } - watchdog_reload(); - /* do not check speed, just as a benchmark */ - test_x25519_speed(); test_pass(); } |