openssl/crypto/dh
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 Ignore Makefile.save 1999-04-29 16:04:54 +00:00
dh.h This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
dh192.pem Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dh512.pem Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dh1024.pem Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dh2048.pem Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dh4096.pem Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
dh_asn1.c Get rid of ASN1_ITEM_FUNCTIONS dummy function 2001-02-23 12:47:06 +00:00
dh_check.c This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
dh_depr.c This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
dh_err.c fix DH_generate_parameters for general 'generator' 2002-03-20 16:04:04 +00:00
dh_gen.c This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
dh_key.c This commits changes to various parts of libcrypto required by the recent 2001-09-25 20:23:40 +00:00
dh_lib.c Ensure EVP_CipherInit() uses the correct encode/decode parameter if 2002-03-16 23:20:05 +00:00
dhtest.c This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
example Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
generate Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
Makefile.ssl This is a first-cut at improving the callback mechanisms used in 2002-12-08 05:24:31 +00:00
p192.c Change #include filenames from <foo.h> to <openssl.h>. 1999-04-23 22:13:45 +00:00
p512.c Change #include filenames from <foo.h> to <openssl.h>. 1999-04-23 22:13:45 +00:00
p1024.c Change #include filenames from <foo.h> to <openssl.h>. 1999-04-23 22:13:45 +00:00