Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022, Arm Limited. All rights reserved. |
| 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 | |
| 13 | /* Measured boot message types that distinguish its services */ |
Mate Toth-Pal | 445ee11 | 2022-10-24 15:15:10 +0200 | [diff] [blame] | 14 | #define RSS_MEASURED_BOOT_READ 1001U |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 15 | #define RSS_MEASURED_BOOT_EXTEND 1002U |
| 16 | |
Mate Toth-Pal | 445ee11 | 2022-10-24 15:15:10 +0200 | [diff] [blame] | 17 | struct measured_boot_read_iovec_in_t { |
| 18 | uint8_t index; |
| 19 | uint8_t sw_type_size; |
| 20 | uint8_t version_size; |
| 21 | }; |
| 22 | |
| 23 | struct measured_boot_read_iovec_out_t { |
| 24 | uint8_t is_locked; |
| 25 | uint32_t measurement_algo; |
| 26 | uint8_t sw_type[SW_TYPE_MAX_SIZE]; |
| 27 | uint8_t sw_type_len; |
| 28 | uint8_t version[VERSION_MAX_SIZE]; |
| 29 | uint8_t version_len; |
| 30 | }; |
| 31 | |
Tamas Ban | f549275 | 2022-01-18 16:19:17 +0100 | [diff] [blame] | 32 | struct measured_boot_extend_iovec_t { |
| 33 | uint8_t index; |
| 34 | uint8_t lock_measurement; |
| 35 | uint32_t measurement_algo; |
| 36 | uint8_t sw_type[SW_TYPE_MAX_SIZE]; |
| 37 | uint8_t sw_type_size; |
| 38 | }; |
| 39 | |
| 40 | #endif /* PSA_MEASURED_BOOT_PRIVATE_H */ |