stm32mp1_tbb_cert.c 881 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include "tbbr/tbb_ext.h"
  7. #include "tbbr/tbb_key.h"
  8. #include "tbbr/stm32mp1_tbb_cert.h"
  9. /*
  10. * Certificates used in the chain of trust
  11. *
  12. * The order of the certificates must follow the enumeration specified in
  13. * stm32mp1_tbb_cert.h. All certificates are self-signed, so the issuer certificate
  14. * field points to itself.
  15. */
  16. static cert_t stm32mp1_tbb_certs[] = {
  17. [0] = {
  18. .id = STM32MP_CONFIG_CERT,
  19. .opt = "stm32mp-cfg-cert",
  20. .help_msg = "STM32MP Config Certificate (output file)",
  21. .fn = NULL,
  22. .cn = "STM32MP config FW Certificate",
  23. .key = ROT_KEY,
  24. .issuer = STM32MP_CONFIG_CERT,
  25. .ext = {
  26. TRUSTED_FW_NVCOUNTER_EXT,
  27. HW_CONFIG_HASH_EXT,
  28. FW_CONFIG_HASH_EXT
  29. },
  30. .num_ext = 3
  31. },
  32. };
  33. PLAT_REGISTER_COT(stm32mp1_tbb_certs);