From: Nicolas Toromanoff Date: Tue, 17 Nov 2020 09:03:40 +0000 (+0100) Subject: feat(tbbr): increase PK_DER_LEN size X-Git-Tag: baikal/aarch64/sdk5.9~16^2~12 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=1ef303f9f79020330bbd8e48ac652e8f2121a41b;p=arm-tf.git feat(tbbr): increase PK_DER_LEN size Public key brainpool ECDSA DER certificate are 92 byte long. OID for brainpool curve are 1 byte bigger than the one for NIST curve. Change-Id: Ifad51da3c576d555da9fc519d2df3d9a0e6ed91b Signed-off-by: Nicolas Toromanoff --- diff --git a/include/common/tbbr/cot_def.h b/include/common/tbbr/cot_def.h index e0c2212ae..60dfb8a3c 100644 --- a/include/common/tbbr/cot_def.h +++ b/include/common/tbbr/cot_def.h @@ -41,7 +41,7 @@ #error "Invalid value for TF_MBEDTLS_KEY_SIZE" #endif #else /* Only using ECDSA keys. */ -#define PK_DER_LEN 91 +#define PK_DER_LEN 92 #endif #if TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA256