tc_trusted_boot.c 684 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <plat/arm/common/plat_arm.h>
  7. /*
  8. * Return the ROTPK hash in the following ASN.1 structure in DER format:
  9. *
  10. * AlgorithmIdentifier ::= SEQUENCE {
  11. * algorithm OBJECT IDENTIFIER,
  12. * parameters ANY DEFINED BY algorithm OPTIONAL
  13. * }
  14. *
  15. * DigestInfo ::= SEQUENCE {
  16. * digestAlgorithm AlgorithmIdentifier,
  17. * digest OCTET STRING
  18. * }
  19. */
  20. int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len,
  21. unsigned int *flags)
  22. {
  23. return arm_get_rotpk_info(cookie, key_ptr, key_len, flags);
  24. }