mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-08 06:42:24 +03:00
When writing a private EC key, use a constant size for the private value, as specified in RFC 5915. Previously, the value was written as an ASN.1 INTEGER, which caused the size of the key to leak about 1 bit of information on average, and could cause the value to be 1 byte too large for the output buffer.
17 KiB
17 KiB