From 1ef303f9f79020330bbd8e48ac652e8f2121a41b Mon Sep 17 00:00:00 2001 From: Nicolas Toromanoff Date: Tue, 17 Nov 2020 10:03:40 +0100 Subject: [PATCH] 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 --- include/common/tbbr/cot_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5