| * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. |
| * SPDX-License-Identifier: BSD-3-Clause |
| #ifdef MBEDTLS_CONFIG_FILE |
| #include MBEDTLS_CONFIG_FILE |
| /* TBBR CoT definitions */ |
| #define COT_MAX_VERIFIED_PARAMS 8 |
| #define COT_MAX_VERIFIED_PARAMS 4 |
| * Maximum key and hash sizes (in DER format). |
| * Both RSA and ECDSA keys may be used at the same time. In this case, the key |
| * buffers must be big enough to hold either. As RSA keys are bigger than ECDSA |
| * ones for all key sizes we support, they impose the minimum size of these |
| #if TF_MBEDTLS_KEY_SIZE == 1024 |
| #elif TF_MBEDTLS_KEY_SIZE == 2048 |
| #elif TF_MBEDTLS_KEY_SIZE == 3072 |
| #elif TF_MBEDTLS_KEY_SIZE == 4096 |
| #error "Invalid value for TF_MBEDTLS_KEY_SIZE" |
| #else /* Only using ECDSA keys. */ |
| #if TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA256 |
| #elif TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA384 |
| #elif TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA512 |
| #error "Invalid value for TF_MBEDTLS_HASH_ALG_ID" |