Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 1 | /* |
Tamas Ban | c96425b | 2024-02-23 10:41:05 +0100 | [diff] [blame] | 2 | * Copyright (c) 2022-2024, Arm Limited. All rights reserved. |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef PSA_MEASURED_BOOT_PRIVATE_H |
| 9 | #define PSA_MEASURED_BOOT_PRIVATE_H |
| 10 | |
| 11 | #include <stdint.h> |
| 12 | |
Tamas Ban | c96425b | 2024-02-23 10:41:05 +0100 | [diff] [blame] | 13 | #include <drivers/measured_boot/metadata.h> |
| 14 | |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 15 | /* Measured boot message types that distinguish its services */ |
Tamas Ban | dc2a286 | 2024-02-22 11:41:25 +0100 | [diff] [blame] | 16 | #define RSE_MEASURED_BOOT_READ 1001U |
| 17 | #define RSE_MEASURED_BOOT_EXTEND 1002U |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 18 | |
Mate Toth-Pal | 445ee11 | 2022-10-24 15:15:10 +0200 | [diff] [blame] | 19 | struct measured_boot_read_iovec_in_t { |
| 20 | uint8_t index; |
| 21 | uint8_t sw_type_size; |
| 22 | uint8_t version_size; |
| 23 | }; |
| 24 | |
| 25 | struct measured_boot_read_iovec_out_t { |
| 26 | uint8_t is_locked; |
| 27 | uint32_t measurement_algo; |
| 28 | uint8_t sw_type[SW_TYPE_MAX_SIZE]; |
| 29 | uint8_t sw_type_len; |
| 30 | uint8_t version[VERSION_MAX_SIZE]; |
| 31 | uint8_t version_len; |
| 32 | }; |
| 33 | |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 34 | struct measured_boot_extend_iovec_t { |
| 35 | uint8_t index; |
| 36 | uint8_t lock_measurement; |
| 37 | uint32_t measurement_algo; |
| 38 | uint8_t sw_type[SW_TYPE_MAX_SIZE]; |
| 39 | uint8_t sw_type_size; |
| 40 | }; |
| 41 | |
| 42 | #endif /* PSA_MEASURED_BOOT_PRIVATE_H */ |