From 3c4a912e67ad0f0635c77ef4a30f07397fb06be7 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Tue, 29 May 2018 12:56:09 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1075908 Reviewed-by: Daisuke Nojiri --- board/fizz/board.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1