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