Allow EC_GROUP objects to share precomputation for improved memory
authorBodo Möller <bodo@openssl.org>
Wed, 12 Feb 2003 18:30:16 +0000 (18:30 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 12 Feb 2003 18:30:16 +0000 (18:30 +0000)
commitba729265a819d4c36df730449aeb301927ca74f2
treef876ae2bf233b018af9f863a51578b77ac890b23
parent9ec1d35f29c5d3c0c6a2461610c7db494a0d9aa9
Allow EC_GROUP objects to share precomputation for improved memory
efficiency (EC_PRE_COMP objects are now constant once completed).

Extend 'extra_data' API to support arbitrarily many slots (although we
need only one at the moment).

Modify EC internal 'extra_data' API: EC_GROUP_[clear_]free_extra_data
now frees only a single slot (the previous functions are available as
EC_GROUP_[clear_]free_all_extra_data).

Submitted by: Nils Larsch
Reviewed by: Bodo Moeller
crypto/ec/ec_lcl.h
crypto/ec/ec_lib.c
crypto/ec/ec_mult.c