summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-29 12:56:09 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-05-31 01:07:12 +0000
commit0cf09d21ed76a48e1295f16d456e48893fd802ae (patch)
treebfe016f3ff656940389ec9abcf08abe01db85e58
parent787ec2236a8e295f7627ec9fbb75c5d07154f102 (diff)
downloadchrome-ec-0cf09d21ed76a48e1295f16d456e48893fd802ae.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> (cherry picked from commit 3c4a912e67ad0f0635c77ef4a30f07397fb06be7) Reviewed-on: https://chromium-review.googlesource.com/1079470 Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-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 06834c6e5b..37bc04055f 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -171,7 +171,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