fvp_drtm_measurement.c 629 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <stdbool.h>
  7. #include <stddef.h>
  8. #include <stdint.h>
  9. #include <drivers/measured_boot/event_log/event_log.h>
  10. #include <plat/common/platform.h>
  11. #include <platform_def.h>
  12. /* DRTM TPM Features */
  13. static const plat_drtm_tpm_features_t tpm_features = {
  14. /* No TPM-based hashing supported. */
  15. .tpm_based_hash_support = false,
  16. /* Set to decided algorithm by Event Log driver */
  17. .firmware_hash_algorithm = TPM_ALG_ID
  18. };
  19. const plat_drtm_tpm_features_t *plat_drtm_get_tpm_features(void)
  20. {
  21. return &tpm_features;
  22. }