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>
This commit is contained in:
Dr. Stephen Henson
2016-01-31 16:34:07 +00:00
parent 81e03785f7
commit be2e334fce
12 changed files with 103 additions and 84 deletions

View File

@@ -4766,3 +4766,6 @@ TS_STATUS_INFO_get0_failure_info 5160 1_1_0 EXIST::FUNCTION:
TS_STATUS_INFO_get0_text 5161 1_1_0 EXIST::FUNCTION:
CRYPTO_secure_zalloc 5162 1_1_0 EXIST::FUNCTION:
X509_NAME_get0_der 5163 1_1_0 EXIST::FUNCTION:
EC_GROUP_order_bits 5164 1_1_0 EXIST::FUNCTION:EC
EC_GROUP_get0_order 5165 1_1_0 EXIST::FUNCTION:EC
EC_GROUP_get0_cofactor 5166 1_1_0 EXIST::FUNCTION:EC