summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-04-29 13:24:16 -0600
committerCommit Bot <commit-bot@chromium.org>2021-05-01 05:18:25 +0000
commit3d27fecc625d2ed5d5162f079c85b0dfbc93398b (patch)
treea404d9dacebe9905c172653a9be2b397d16b6b1f /firmware
parent32cb4ad65a87da05c4a103068497cf87ad87e4a9 (diff)
downloadvboot-3d27fecc625d2ed5d5162f079c85b0dfbc93398b.tar.gz
cleanup: remove ryu roothash functionality
Ryu was a canceled Chrome OS project (it launched with Android instead). 6 years later and this unused code is still kicking around. Delete it. BUG=b:186777279 BRANCH=none TEST=compile futility Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ic359413bc22a51ac8839e3e062234b1fd99a262c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2861022 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/2lib/include/2struct.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/firmware/2lib/include/2struct.h b/firmware/2lib/include/2struct.h
index e0ef606a..b79bbd03 100644
--- a/firmware/2lib/include/2struct.h
+++ b/firmware/2lib/include/2struct.h
@@ -304,43 +304,6 @@ _Static_assert(VB2_GBB_FLAGS_OFFSET == offsetof(struct vb2_gbb_header, flags),
/****************************************************************************/
-/*
- * Root key hash for Ryu devices only. Contains the hash of the root key.
- * This will be embedded somewhere inside the RO part of the firmware, so that
- * it can verify the GBB contains only the official root key.
- */
-#define RYU_ROOT_KEY_HASH_MAGIC "RtKyHash"
-#define RYU_ROOT_KEY_HASH_MAGIC_INVCASE "rTkYhASH"
-#define RYU_ROOT_KEY_HASH_MAGIC_SIZE 8
-
-#define RYU_ROOT_KEY_HASH_VERSION_MAJOR 1
-#define RYU_ROOT_KEY_HASH_VERSION_MINOR 0
-
-struct vb2_ryu_root_key_hash {
- /* Magic number (RYU_ROOT_KEY_HASH_MAGIC) */
- uint8_t magic[RYU_ROOT_KEY_HASH_MAGIC_SIZE];
-
- /* Version of this struct */
- uint16_t header_version_major;
- uint16_t header_version_minor;
-
- /*
- * Length of this struct, in bytes, including any variable length data
- * which follows (there is none, yet).
- */
- uint32_t struct_size;
-
- /*
- * SHA-256 hash digest of the entire root key section from the GBB. If
- * all 0 bytes, all root keys will be treated as if matching.
- */
- uint8_t root_key_hash_digest[32];
-};
-
-#define EXPECTED_VB2_RYU_ROOT_KEY_HASH_SIZE 48
-
-/****************************************************************************/
-
/* Packed public key data */
struct vb2_packed_key {
/* Offset of key data from start of this struct */