plat_arm_mbedtls_config.h 637 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2024, Arm Ltd. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef PLAT_ARM_MBEDTLS_CONFIG_H
  7. #define PLAT_ARM_MBEDTLS_CONFIG_H
  8. #include <default_mbedtls_config.h>
  9. /**
  10. * On Arm platforms, the ROTPK is always hashed using the SHA-256
  11. * algorithm.
  12. * TODO: Update to hash the ROTPK with the selected HASH_ALG to avoid
  13. * the need for explicitly enabling the SHA-256 configuration in mbedTLS.
  14. */
  15. #define MBEDTLS_SHA256_C
  16. /*
  17. * Use an implementation of SHA-256 with a smaller memory footprint
  18. * but reduced speed.
  19. */
  20. #define MBEDTLS_SHA256_SMALLER
  21. #endif /* PLAT_ARM_MBEDTLS_CONFIG_H */