Merge "TBBR: Reduce size of ECDSA key buffers" into integration
This commit is contained in:
commit
564074c284
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -18,7 +18,12 @@
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Maximum key and hash sizes (in DER format)
|
* 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
|
||||||
|
* buffers.
|
||||||
*/
|
*/
|
||||||
#if TF_MBEDTLS_USE_RSA
|
#if TF_MBEDTLS_USE_RSA
|
||||||
#if TF_MBEDTLS_KEY_SIZE == 1024
|
#if TF_MBEDTLS_KEY_SIZE == 1024
|
||||||
|
@ -32,8 +37,8 @@
|
||||||
#else
|
#else
|
||||||
#error "Invalid value for TF_MBEDTLS_KEY_SIZE"
|
#error "Invalid value for TF_MBEDTLS_KEY_SIZE"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else /* Only using ECDSA keys. */
|
||||||
#define PK_DER_LEN 294
|
#define PK_DER_LEN 91
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HASH_DER_LEN 83
|
#define HASH_DER_LEN 83
|
||||||
|
|
Loading…
Reference in New Issue