Skip to content
Commit a63d3ac0 authored by Douglas E Engert's avatar Douglas E Engert Committed by Matt Caswell
Browse files

Ensure EC private keys retain leading zeros



RFC5915 requires the use of the I2OSP primitive as defined in RFC3447
for storing an EC Private Key. This converts the private key into an
OCTETSTRING and retains any leading zeros. This commit ensures that those
leading zeros are present if required.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
(cherry picked from commit 30cd4ff2)

Conflicts:
	crypto/ec/ec_asn1.c
parent 8a46e51e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment