David Horstmann beb90e30de Disallow overlong encoding when parsing OIDs
OID subidentifiers are encoded as follow. For every byte:
* The top bit is 1 if there is another byte to come, 0 if this is the
last byte.
* The other 7 bits form 7 bits of the number. These groups of 7 are
concatenated together in big-endian order.

Overlong encodings are explicitly disallowed by the BER/DER/X690
specification. For example, the number 1 cannot be encoded as:

0x80 0x80 0x01

It must be encoded as:

0x01

Enforce this in Mbed TLS' OID DER-to-string parser.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-02-20 14:44:18 +00:00
..
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-02-13 15:07:44 +00:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-02-02 12:46:39 +00:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2022-12-08 11:05:11 +00:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-02-13 15:07:44 +00:00
2023-01-11 14:52:35 +01:00
2023-02-02 12:46:39 +00:00
2023-01-11 14:52:37 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-02-02 12:46:39 +00:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:37 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00
2023-01-11 14:52:35 +01:00