diff options
author | Todd Broch <tbroch@chromium.org> | 2014-11-20 14:29:42 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-01 20:30:54 +0000 |
commit | f6e45879d7302284312140b9abb06e16086b00a6 (patch) | |
tree | ad0d7f301a269b8ba524d7d5a83cd398372282ae | |
parent | a7459936390a1c39938cf1cd160cc976702881ca (diff) | |
download | chrome-ec-f6e45879d7302284312140b9abb06e16086b00a6.tar.gz |
dingdong: enable RW firmware signature verification
Check RSA signature of the RW firmware and jump to it if it is valid.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=none
BUG=chrome-os-partner:31193
TEST=flash on dingdong and boot with both bad and good RW firmware and
see it jump to RW only on the latter.
Change-Id: Ife8d1f9bcc16d796b9005a9761610119e456dd63
Reviewed-on: https://chromium-review.googlesource.com/231830
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
-rw-r--r-- | board/dingdong/board.h | 3 | ||||
-rw-r--r-- | board/dingdong/dev_key.pem | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/board/dingdong/board.h b/board/dingdong/board.h index 3007f8b67f..32678b2ad4 100644 --- a/board/dingdong/board.h +++ b/board/dingdong/board.h @@ -19,6 +19,9 @@ #define CONFIG_ADC #define CONFIG_BOARD_PRE_INIT #define CONFIG_HW_CRC +#define CONFIG_RSA +#define CONFIG_RWSIG +#define CONFIG_SHA256 #define CONFIG_USB #define CONFIG_USB_BOS #define CONFIG_USB_INHIBIT_CONNECT diff --git a/board/dingdong/dev_key.pem b/board/dingdong/dev_key.pem new file mode 100644 index 0000000000..e2ff6781cd --- /dev/null +++ b/board/dingdong/dev_key.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAqhcIe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