openssl/crypto/ec
Geoff Thorpe e9224c7177 This is a first-cut at improving the callback mechanisms used in
key-generation and prime-checking functions. Rather than explicitly passing
callback functions and caller-defined context data for the callbacks, a new
structure BN_GENCB is defined that encapsulates this; a pointer to the
structure is passed to all such functions instead.

This wrapper structure allows the encapsulation of "old" and "new" style
callbacks - "new" callbacks return a boolean result on the understanding
that returning FALSE should terminate keygen/primality processing.  The
BN_GENCB abstraction will allow future callback modifications without
needing to break binary compatibility nor change the API function
prototypes. The new API functions have been given names ending in "_ex" and
the old functions are implemented as wrappers to the new ones.  The
OPENSSL_NO_DEPRECATED symbol has been introduced so that, if defined,
declaration of the older functions will be skipped. NB: Some
openssl-internal code will stick with the older callbacks for now, so
appropriate "#undef" logic will be put in place - this is in case the user
is *building* openssl (rather than *including* its headers) with this
symbol defined.

There is another change in the new _ex functions; the key-generation
functions do not return key structures but operate on structures passed by
the caller, the return value is a boolean. This will allow for a smoother
transition to having key-generation as "virtual function" in the various
***_METHOD tables.
2002-12-08 05:24:31 +00:00
..
.cvsignore Move ec.h to ec2.h because it is not compatible with what we will use. 2001-03-05 20:13:37 +00:00
ec.h Sun has agreed to removing the covenant language from most files. 2002-10-29 10:59:32 +00:00
ec2_mult.c rename some functions to improve consistency 2002-11-23 18:16:09 +00:00
ec2_smpl.c rename some functions to improve consistency 2002-11-23 18:16:09 +00:00
ec2_smpt.c Rename implementations of method functions so that they match 2002-08-02 14:28:37 +00:00
ec_asn1.c less specific interface for EC_GROUP_get_basis_type 2002-08-26 18:08:53 +00:00
ec_check.c New function EC_GROUP_check_discriminant(). 2002-03-20 10:18:07 +00:00
ec_curve.c corrections to built-in curves 2002-11-11 10:24:52 +00:00
ec_cvt.c Sun has agreed to removing the covenant language from most files. 2002-10-29 10:59:32 +00:00
ec_err.c clean up new code for NIST primes 2002-10-28 14:02:19 +00:00
ec_key.c Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
ec_lcl.h rename some functions to improve consistency 2002-11-23 18:16:09 +00:00
ec_lib.c Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
ec_mult.c implement and use new macros BN_get_sign(), BN_set_sign() 2002-11-04 13:17:22 +00:00
ec_print.c fix memory leak 2002-06-06 10:33:05 +00:00
ecp_mont.c use consistent order of function definitions 2002-11-18 14:33:39 +00:00
ecp_nist.c remove redundant functions 2002-11-18 14:37:35 +00:00
ecp_recp.c Rename implementations of method functions so that they match 2002-08-02 14:28:37 +00:00
ecp_smpl.c add a comment 2002-11-22 09:25:35 +00:00
ectest.c This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
Makefile.ssl make update 2002-11-14 23:56:12 +00:00