]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(tbbr): increase PK_DER_LEN size
authorNicolas Toromanoff <nicolas.toromanoff@st.com>
Tue, 17 Nov 2020 09:03:40 +0000 (10:03 +0100)
committerLionel Debieve <lionel.debieve@foss.st.com>
Mon, 14 Nov 2022 10:25:01 +0000 (11:25 +0100)
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 <nicolas.toromanoff@st.com>
include/common/tbbr/cot_def.h

index e0c2212ae1c117ba8996a038bfe44c1140e39ea3..60dfb8a3c7c64b4d0c07ce2e1a162efc13bb9b6e 100644 (file)
@@ -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