xref: /aosp_15_r20/external/gsc-utils/boot_param/cdi.h (revision 4f2df630800bdcf1d4f0decf95d8a1cb87344f5f)
1 /*
2  * Copyright 2024 The ChromiumOS Authors
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 #ifndef __GSC_UTILS_BOOT_PARAM_CDI_H
8 #define __GSC_UTILS_BOOT_PARAM_CDI_H
9 
10 #include "boot_param_types.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 struct cdi_seal_inputs_s {
17 	uint8_t auth_data_digest[DIGEST_BYTES];
18 	uint8_t mode;
19 	uint8_t hidden_digest[DIGEST_BYTES];
20 };
21 
22 struct cdi_attest_inputs_s {
23 	uint8_t code_digest[DIGEST_BYTES];
24 	uint8_t cfg_desr_digest[DIGEST_BYTES];
25 	struct cdi_seal_inputs_s seal_inputs;
26 };
27 
28 #ifdef __cplusplus
29 } /* extern "C" */
30 #endif
31 
32 #endif /* __GSC_UTILS_BOOT_PARAM_CDI_H */
33