Add EC_GROUP_order_bits, EC_GROUP_get0_order and EC_GROUP_get0_cofactor
authorDr. Stephen Henson <steve@openssl.org>
Sun, 31 Jan 2016 16:34:07 +0000 (16:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 31 Jan 2016 22:18:30 +0000 (22:18 +0000)
commitbe2e334fce734e726a4085701bc3cbbaabf9d893
tree1abe68a660b992e194fdb26dd42aed6860d3e87a
parent81e03785f718f98861a2a84b7b5d798b00df1670
Add EC_GROUP_order_bits, EC_GROUP_get0_order and EC_GROUP_get0_cofactor

New functions to return internal pointer for order and cofactor. This
avoids the need to allocate a new BIGNUM which to copy the value to.
Simplify code to use new functions.

Reviewed-by: Rich Salz <rsalz@openssl.org>
12 files changed:
crypto/ec/ec_ameth.c
crypto/ec/ec_asn1.c
crypto/ec/ec_check.c
crypto/ec/ec_key.c
crypto/ec/ec_lib.c
crypto/ec/ec_mult.c
crypto/ec/ecdsa_ossl.c
crypto/ec/eck_prn.c
crypto/ec/ecp_nistz256.c
doc/crypto/EC_GROUP_copy.pod
include/openssl/ec.h
util/libeay.num