measured_boot_private.h 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2022-2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef PSA_MEASURED_BOOT_PRIVATE_H
  8. #define PSA_MEASURED_BOOT_PRIVATE_H
  9. #include <stdint.h>
  10. #include <drivers/measured_boot/metadata.h>
  11. /* Measured boot message types that distinguish its services */
  12. #define RSE_MEASURED_BOOT_READ 1001U
  13. #define RSE_MEASURED_BOOT_EXTEND 1002U
  14. struct measured_boot_read_iovec_in_t {
  15. uint8_t index;
  16. uint8_t sw_type_size;
  17. uint8_t version_size;
  18. };
  19. struct measured_boot_read_iovec_out_t {
  20. uint8_t is_locked;
  21. uint32_t measurement_algo;
  22. uint8_t sw_type[SW_TYPE_MAX_SIZE];
  23. uint8_t sw_type_len;
  24. uint8_t version[VERSION_MAX_SIZE];
  25. uint8_t version_len;
  26. };
  27. struct measured_boot_extend_iovec_t {
  28. uint8_t index;
  29. uint8_t lock_measurement;
  30. uint32_t measurement_algo;
  31. uint8_t sw_type[SW_TYPE_MAX_SIZE];
  32. uint8_t sw_type_size;
  33. };
  34. #endif /* PSA_MEASURED_BOOT_PRIVATE_H */