summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-29 12:56:09 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-05-29 21:22:48 -0700
commit3c4a912e67ad0f0635c77ef4a30f07397fb06be7 (patch)
treef8c3ffe400c39ff5ac02d23f21f28377e00c14c2
parentcf73be70396982a1caa933c04a7633a65a4ec5ad (diff)
downloadchrome-ec-3c4a912e67ad0f0635c77ef4a30f07397fb06be7.tar.gz
fizz: Enable optimized SHA256/RSA in RO only
Decreases verification time from 923ms to 785ms. Optimized version do not really help in RW, as they just increase the image size (which also increases verification time). BRANCH=fizz BUG=b:77608104 TEST=make BOARD=fizz -j, flash fizz, check timing. Change-Id: Ia8c36c35c0321c1995dc1cede7b27f7636037795 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1075908 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--board/fizz/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h
index f749682e7e..34a36de919 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -170,7 +170,13 @@
#define CONFIG_RWSIG
#define CONFIG_RWSIG_TYPE_RWSIG
#define CONFIG_RSA
+#ifdef SECTION_IS_RO
+#define CONFIG_RSA_OPTIMIZED
+#endif
#define CONFIG_SHA256
+#ifdef SECTION_IS_RO
+#define CONFIG_SHA256_UNROLLED
+#endif
#define CONFIG_RSA_KEY_SIZE 3072
#define CONFIG_RSA_EXPONENT_3