summaryrefslogtreecommitdiff
path: root/board/cr50/board.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-03-30 21:23:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-04 18:52:03 -0700
commitf2eac533dcad117e4f631f00d27977ca611dc497 (patch)
tree935a292c53bde606da7f19a75fe7e8bd59b4fc93 /board/cr50/board.h
parent5d8a4ba6f252fbda1111c25a05523c73ebe3343d (diff)
downloadchrome-ec-f2eac533dcad117e4f631f00d27977ca611dc497.tar.gz
cr50: use run time generated public RMA key definition
Use RMA public key definition generated based on the binary blob containing the key and key ID. Key generation is controlled by the make file in common/, but actual key blob comes from the board directory. The structure holding the key and key ID is being modified to allow initialization using a flat array. No more need in defining CONFIG_RMA_AUTH_SERVER_PUBLIC_KEY and CONFIG_RMA_AUTH_SERVER_KEY_ID. BRANCH=cr50, cr50-mp BUG=b:73296144, b:74100307 TEST='make buildall' still succeeds. test RMA server generated authentication codes are accepted when unlocking RMA. Change-Id: I8ade94de6eb69b3e49bc5b948dbac20e59962acf Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/990783 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r--board/cr50/board.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 6bf889dad9..c87cd3e651 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -352,15 +352,6 @@ enum nvmem_users {
#define CONFIG_RMA_AUTH
#define CONFIG_RNG
-/* Should be eventually injected into the image at build time. */
-#define CONFIG_RMA_AUTH_SERVER_PUBLIC_KEY { \
- 0xe3, 0xe5, 0x66, 0xf3, 0x12, 0x25, 0x74, 0xba, \
- 0xb3, 0x8f, 0x9f, 0x41, 0x80, 0x3b, 0x58, 0x9a, \
- 0xb0, 0xdc, 0x71, 0x64, 0x1b, 0x6d, 0x22, 0x82, \
- 0x9f, 0x22, 0x31, 0xb3, 0x56, 0x94, 0x8e, 0x13}
-
-#define CONFIG_RMA_AUTH_SERVER_KEY_ID 0
-
#define CONFIG_ENABLE_H1_ALERTS
#endif /* __CROS_EC_BOARD_H */