mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00
fix(cert-create): add default keysize to Brainpool ECDSA
By default, the ECDSA Brainpool regular and ECDSA Brainpool twisted algorithms support 256-bit sized keys. Not defining this leads to an error indicating that '256' is not a valid key size for ECDSA Brainpool. KEY_SIZES matrix must have a value in its table to avoid problems when KEY_SIZE is defined. Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I34886659315f59a9582dcee1d92d0e24d4a4138e
This commit is contained in:
parent
999503d285
commit
0da16fe32f
2 changed files with 4 additions and 4 deletions
|
@ -737,9 +737,9 @@ Common build options
|
|||
+---------------------------+------------------------------------+
|
||||
| ecdsa | 256 (default), 384 |
|
||||
+---------------------------+------------------------------------+
|
||||
| ecdsa-brainpool-regular | unavailable |
|
||||
| ecdsa-brainpool-regular | 256 (default) |
|
||||
+---------------------------+------------------------------------+
|
||||
| ecdsa-brainpool-twisted | unavailable |
|
||||
| ecdsa-brainpool-twisted | 256 (default) |
|
||||
+---------------------------+------------------------------------+
|
||||
|
||||
- ``HASH_ALG``: This build flag enables the user to select the secure hash
|
||||
|
|
|
@ -45,8 +45,8 @@ static const unsigned int KEY_SIZES[KEY_ALG_MAX_NUM][KEY_SIZE_MAX_NUM] = {
|
|||
{ 2048, 1024, 3072, 4096 }, /* KEY_ALG_RSA */
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ 256, 384 }, /* KEY_ALG_ECDSA_NIST */
|
||||
{}, /* KEY_ALG_ECDSA_BRAINPOOL_R */
|
||||
{} /* KEY_ALG_ECDSA_BRAINPOOL_T */
|
||||
{ 256 }, /* KEY_ALG_ECDSA_BRAINPOOL_R */
|
||||
{ 256 } /* KEY_ALG_ECDSA_BRAINPOOL_T */
|
||||
#endif /* OPENSSL_NO_EC */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue