summaryrefslogtreecommitdiff
path: root/include/vb21_struct.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:18:02 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 07:39:10 +0000
commita81d1b9cf2bfb062963ba088b32be3f838297a38 (patch)
treefda9cc939c54e8cc78a39def677a74cadac4dbf9 /include/vb21_struct.h
parent63710ad38955e657c97d1c554be1d5cc0cb2e8c2 (diff)
downloadchrome-ec-a81d1b9cf2bfb062963ba088b32be3f838297a38.tar.gz
include/vb21_struct.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I6c35541f9ec090327f0907a20163d2ba5dbf6383 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730452 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/vb21_struct.h')
-rw-r--r--include/vb21_struct.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/include/vb21_struct.h b/include/vb21_struct.h
index 74d0ea3ad2..b1e6bedd7f 100644
--- a/include/vb21_struct.h
+++ b/include/vb21_struct.h
@@ -28,25 +28,24 @@
*/
enum vb21_struct_common_magic {
/* "Vb2B" = vb21_keyblock.c.magic */
- VB21_MAGIC_KEYBLOCK = 0x42326256,
+ VB21_MAGIC_KEYBLOCK = 0x42326256,
/* "Vb2F" = vb21_fw_preamble.c.magic */
- VB21_MAGIC_FW_PREAMBLE = 0x46326256,
+ VB21_MAGIC_FW_PREAMBLE = 0x46326256,
/* "Vb2I" = vb21_packed_private_key.c.magic */
- VB21_MAGIC_PACKED_PRIVATE_KEY = 0x49326256,
+ VB21_MAGIC_PACKED_PRIVATE_KEY = 0x49326256,
/* "Vb2K" = vb2_kernel_preamble.c.magic */
- VB21_MAGIC_KERNEL_PREAMBLE = 0x4b326256,
+ VB21_MAGIC_KERNEL_PREAMBLE = 0x4b326256,
/* "Vb2P" = vb21_packed_key.c.magic */
- VB21_MAGIC_PACKED_KEY = 0x50326256,
+ VB21_MAGIC_PACKED_KEY = 0x50326256,
/* "Vb2S" = vb21_signature.c.magic */
- VB21_MAGIC_SIGNATURE = 0x53326256,
+ VB21_MAGIC_SIGNATURE = 0x53326256,
};
-
/*
* Generic struct header for all vboot2.1 structs. This makes it easy to
* automatically parse and identify vboot structs (e.g., in futility). This
@@ -145,7 +144,7 @@ struct vb21_packed_key {
struct vb2_id id;
} __attribute__((packed));
-#define EXPECTED_VB21_PACKED_KEY_SIZE \
+#define EXPECTED_VB21_PACKED_KEY_SIZE \
(EXPECTED_VB21_STRUCT_COMMON_SIZE + 16 + EXPECTED_ID_SIZE)
/* Current version of vb21_packed_private_key struct */
@@ -184,7 +183,7 @@ struct vb21_packed_private_key {
struct vb2_id id;
} __attribute__((packed));
-#define EXPECTED_VB21_PACKED_PRIVATE_KEY_SIZE \
+#define EXPECTED_VB21_PACKED_PRIVATE_KEY_SIZE \
(EXPECTED_VB21_STRUCT_COMMON_SIZE + 12 + EXPECTED_ID_SIZE)
/* Current version of vb21_signature struct */
@@ -232,10 +231,9 @@ struct vb21_signature {
struct vb2_id id;
} __attribute__((packed));
-#define EXPECTED_VB21_SIGNATURE_SIZE \
+#define EXPECTED_VB21_SIGNATURE_SIZE \
(EXPECTED_VB21_STRUCT_COMMON_SIZE + 16 + EXPECTED_ID_SIZE)
-
/* Current version of vb21_keyblock struct */
#define VB21_KEYBLOCK_VERSION_MAJOR 3
#define VB21_KEYBLOCK_VERSION_MINOR 0
@@ -290,7 +288,6 @@ struct vb21_keyblock {
#define EXPECTED_VB21_KEYBLOCK_SIZE (EXPECTED_VB21_STRUCT_COMMON_SIZE + 16)
-
/* Current version of vb21_fw_preamble struct */
#define VB21_FW_PREAMBLE_VERSION_MAJOR 3
#define VB21_FW_PREAMBLE_VERSION_MINOR 0
@@ -343,4 +340,4 @@ struct vb21_fw_preamble {
#define EXPECTED_VB21_FW_PREAMBLE_SIZE (EXPECTED_VB21_STRUCT_COMMON_SIZE + 20)
-#endif /* VBOOT_REFERENCE_VB21_STRUCT_H_ */
+#endif /* VBOOT_REFERENCE_VB21_STRUCT_H_ */