summaryrefslogtreecommitdiff
path: root/test/rsa.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-24 15:40:41 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-05-24 19:30:22 -0700
commit1d2c13a1630a1a6222411e1c03186cb9b1f576e0 (patch)
tree29188647563b34d5b72b30146061a658df933c63 /test/rsa.c
parentae82b79667d227d58675cbf73fa032d6bead098f (diff)
downloadchrome-ec-1d2c13a1630a1a6222411e1c03186cb9b1f576e0.tar.gz
BRANCH=poppy BUG=b:35647963 BUG=b:77608104 TEST=make run-rsa run-rsa3 TEST=make BOARD=hammer test-rsa3, test on board Change-Id: Id4bd8d5f550dbc6569d88ced114849b3b6411b2f Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1071410 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test/rsa.c')
-rw-r--r--test/rsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rsa.c b/test/rsa.c
index 401b502855..aaa4a656e2 100644
--- a/test/rsa.c
+++ b/test/rsa.c
@@ -17,10 +17,11 @@
#include "rsa2048-F4.h"
#endif
+static uint32_t rsa_workbuf[3 * RSANUMBYTES/4];
+
void run_test(void)
{
int good;
- uint32_t rsa_workbuf[3 * RSANUMBYTES/4];
good = rsa_verify(rsa_key, sig, hash, rsa_workbuf);
if (!good) {