Make ECDSA_size() use consistent asn1 encoder.
authorShane Lontis <shane.lontis@oracle.com>
Thu, 5 Dec 2019 00:41:43 +0000 (10:41 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Tue, 7 Jan 2020 04:53:38 +0000 (14:53 +1000)
commit88b4c61299c565d1349247c955dd67a4177b55dd
tree307b9b383d3625879f9245069ec843209f37244a
parent5310a4e616f9f0268048c6a8c4dec4cf2c493bb8
Make ECDSA_size() use consistent asn1 encoder.

ECDSA signature lengths are calculated using i2d_ECDSA_SIG().
i2d_ECDSA_SIG() was changed in a previous PR to use a custom ASN1 encoder (using WPACKET)
so that the normal ASN1 encoder does not need to be pulled into the provider boundary.
For consistency ECDSA_size() has been changed to also use i2d_ECDSA_SIG() - this can now
be used directly inside the FIPS provider.

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10577)
crypto/ec/ec_asn1.c