1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Fix bug whereby 0 was written as 0200 rather than 020100

0200 is not just non-DER, it's completely invalid, since there has to be a
sign bit.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2022-06-10 20:13:33 +02:00
parent c9a30fba74
commit 321a08944b
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
Bugfix
* Fix mbedtls_asn1_write_mpi() writing an incorrect encoding of 0.