Open RonEld opened 6 years ago
Internal Reference: IOTSSL-2116.
Fixed in development and 2.28 LTS.
@daverodgman I'm not sure what you're referring to when you say that something is fixed, but
Integer encoding 02020001 is invalid
is indeed the case according to the specification of DER, but Mbed TLS still accepts it when parsing an INTEGER today.
I'm not completely sure this is an issue we want to fix: canonicity is important, but so is interoperability, and there's a history of non-compliant non-canonical encodings floating around. Non-compliance isn't as common as it used to be, so it's possible that we might not have wanted to fix this a few years ago but we'd want to fix it now, or maybe we'd want to avoid changing the LTS branch but we should fix it in development.
Description
Reported by Jongho Lee in the support forum: