blob: c2db595d27ab4b6978adfe721bfced78110b305d [file] [log] [blame]
Manish V Badarkhe9dede082024-09-06 10:53:54 +01001/*
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
Ryan Everett61a69ad2024-12-09 15:54:21 +000010#include <default_mbedtls_config.h>
Manish V Badarkhe9dede082024-09-06 10:53:54 +010011
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 */