qemu_trusted_boot.c 601 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <plat/common/platform.h>
  7. extern char qemu_rotpk_hash[], qemu_rotpk_hash_end[];
  8. int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len,
  9. unsigned int *flags)
  10. {
  11. *key_ptr = qemu_rotpk_hash;
  12. *key_len = qemu_rotpk_hash_end - qemu_rotpk_hash;
  13. *flags = ROTPK_IS_HASH;
  14. return 0;
  15. }
  16. int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr)
  17. {
  18. *nv_ctr = 0;
  19. return 0;
  20. }
  21. int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr)
  22. {
  23. return 1;
  24. }