ECP: Increase MBEDTLS_ECP_GRP_OID_MAX_SIZE to 32
Provide documentation for the source of the change
diff --git a/include/mbedtls/ecp.h b/include/mbedtls/ecp.h
index badfe86..32c4528 100644
--- a/include/mbedtls/ecp.h
+++ b/include/mbedtls/ecp.h
@@ -504,8 +504,14 @@
#if defined(MBEDTLS_ASN1_WRITE_C) && defined(MBEDTLS_OID_C)
/**
* \brief Maximum size of the output of mbedtls_ecp_ansi_write_group
+ *
+ * \note The maximum size of the OID of a supported group + 2 for
+ * tag and length. Maximum size 30 is based on the length of
+ * the OID for primeCurves 10-38 over GF(p) defined by the
+ * CDC Group, as they seem to have the longest OID out of
+ * curves in use.
*/
-#define MBEDTLS_OID_EC_GRP_MAX_SIZE 12
+#define MBEDTLS_ECP_GRP_OID_MAX_SIZE ( 30 + 2 )
/**
* \brief Write the ANSI X9.62/RFC5480 OID ECParameters of a group