summaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Collapse)Author
2000-11-29use standard CUlf Möller
2000-11-28Use BN_pseudo_rand instead of BN_randBodo Möller
2000-11-28Timings.Bodo Möller
2000-11-28Addapt to added files in the BIGNUM sectionRichard Levitte
2000-11-28Correct a bug in BN_kronecker.Bodo Möller
Sketch the test for BN_kronecker.
2000-11-28Add test_kron function, which will contain a test for BN_kronecker.Bodo Möller
2000-11-28Add bn_kron.c (BN_kronecker), which I forgot in the previous commit.Bodo Möller
Also add the next file in advance so that I can't forget this one :-)
2000-11-27Undo previous commit, which was an accident.Bodo Möller
2000-11-27Fix BN_is_... macros.Bodo Möller
Fix BN_gcd. Analyze BN_mod_inverse. Add BN_kronecker. "make update".
2000-11-26Change submitted files so that they compile (in particular,Bodo Möller
use BN_CTX_start/get/end instead of accessing ctx->tos). Change indentation to "EAY" style.
2000-11-26Change submitted files so that they compile (in particular,Bodo Möller
use BN_CTX_start/get/end instead of accessing ctx->tos). Change indentation to "EAY" style.
2000-11-26Ensure that the "ex_data" member of an RSA structure is initialised beforeGeoff Thorpe
the RSA_METHOD's "init()" handler is called, and is cleaned up after the RSA_METHOD's "finish()" handler is called. Custom RSA_METHODs may wish to initialise contexts and other specifics in the RSA structure upon creation and that was previously not possible - "ex_data" is where that stuff should go and it was being initialised too late for it to be used.
2000-11-26More BN_mod_... functions.Bodo Möller
2000-11-26Add bn_mod.c (should have happend in the previous commit ...).Bodo Möller
BN_swap manual page.
2000-11-26modular arithmeticsBodo Möller
"make update"
2000-11-26Remove CR at line ends.Bodo Möller
2000-11-26Elliptic curves over GF(p), new BIGNUM functions, Montgomery re-implementation.Bodo Möller
These new files will not be included literally in OpenSSL, but I intend to integrate most of their contents. Most file names will change, and when the integration is done, the superfluous files will be deleted. Submitted by: Lenka Fibikova <fibikova@exp-math.uni-essen.de>
2000-11-22Correct a number of syntax errors.Richard Levitte
2000-11-22Addapt the VMS scripts to the changes in the Makefiles.Richard Levitte
2000-11-21Reimplement bn_div_words, bn_add_words and bn_sub_words for VAX.Richard Levitte
I'm a little bit nervous about bn_div_words, as I don't know what it's supposed to return on overflow. For now, I trust the rest of the system to give it numbers that will not cause any overflow...
2000-11-21Avoid getting warnings about unary - being used on unsigned integer.Richard Levitte
2000-11-20Better handling of EVP names, add EVP to speed.Ben Laurie
2000-11-19Make sure bs is assigned NULL when it's free'd, or there will be anRichard Levitte
(incorrect) attempt to free it once more...
2000-11-18Remove two bn_wexpand() from BN_mul(), which is a step toward gettingRichard Levitte
BN_mul() correctly constified, avoids two realloc()'s that aren't really necessary and saves memory to boot. This required a small change in bn_mul_part_recursive() and the addition of variants of bn_cmp_words(), bn_add_words() and bn_sub_words() that can take arrays with differing sizes. The test results show a performance that very closely matches the original code from before my constification. This may seem like a very small win from a performance point of view, but if one remembers that the variants of bn_cmp_words(), bn_add_words() and bn_sub_words() are not at all optimized for the moment (and there's no corresponding assembler code), and that their use may be just as non-optimal, I'm pretty confident there are possibilities... This code needs reviewing!
2000-11-18Remove a declaration for a function that does not exist.Richard Levitte
2000-11-18Make the definition of bn_add_words() match the definition.Richard Levitte
2000-11-17Make sure BN_DIV2W is not defining when defining it, and remove theRichard Levitte
declarations of bn_add_part_words() and bn_sub_part_words() since they do not exist.
2000-11-17Constify bn_dump1 implementation so that it matches the prototypeBodo Möller
in bn.h
2000-11-16More constification of the BN library.Richard Levitte
2000-11-16Make sure to print the BN counting (BN_COUNT) to stderr instead ofRichard Levitte
stdout. bc gets so confused by bean counts.
2000-11-16Oops, when I clean, I should do it thoroughly.Richard Levitte
2000-11-16I've checked again and again. There really is no need to expand a toRichard Levitte
4 times it's size when bn_sqr_recursive() won't look farther than the original length. Thereby, constification is no longer a problem.
2000-11-16I have no idea how this comment got there, but it's certainly notGeoff Thorpe
applicable to ENGINE_ctrl()
2000-11-16Many applications that use OpenSSL with ENGINE support might face aGeoff Thorpe
situation where they've initialised the ENGINE, loaded keys (which are then linked to that ENGINE), and performed other checks (such as verifying certificate chains etc). At that point, if the application goes multi-threaded or multi-process it creates problems for any ENGINE implementations that are either not thread/process safe or that perform optimally when they do not have to perform locking and other contention management tasks at "run-time". This defines a new ENGINE_ctrl() command that can be supported by engines at their discretion. If ENGINE_ctrl(..., ENGINE_CTRL_HUP,...) returns an error then the caller should check if the *_R_COMMAND_NOT_IMPLEMENTED error reason was set - it may just be that the engine doesn't support or need the HUP command, or it could be that the attempted reinitialisation failed. A crude alternative is to ignore the return value from ENGINE_ctrl() (and clear any errors with ERR_clear_error()) and perform a test operation immediately after the "HUP". Very crude indeed. ENGINEs can support this command to close and reopen connections, files, handles, or whatever as an alternative to run-time locking when such things would otherwise be needed. In such a case, it's advisable for the engine implementations to support locking by default but disable it after the arrival of a HUP command, or any other indication by the application that locking is not required. NB: This command exists to allow an ENGINE to reinitialise without the ENGINE's functional reference count having to sink down to zero and back up - which is what is normally required for the finish() and init() handlers to get invoked. It would also be a bad idea for engine_lib to catch this command itself and interpret it by calling the engine's init() and finish() handlers directly, because reinitialisation may need special handling on a case-by-case basis that is distinct from a finish/init pair - eg. calling a finish() handler may invalidate the state stored inside individual keys that have already loaded for this engine.
2000-11-14ignoreUlf Möller
2000-11-14Modify () to (void), since that's what is actually defined in theRichard Levitte
engine structure, and some ANSI C compilers will complain otherwise.
2000-11-14Two OCSP functions that aren't yet implemented.Richard Levitte
2000-11-14Typo, was "time" instead of "tim".Richard Levitte
Caught by Jeffrey Altman <jaltman@columbia.edu>
2000-11-12in some new file names the first 8 characters were not uniqueUlf Möller
2000-11-12Enhance granularity on what I want to debug for the moment by changingRichard Levitte
LEVITTE_DEBUG to LEVITTE_DEBUG_MEM.
2000-11-12Make Rijndael work! Those long flights have some good points.Ben Laurie
2000-11-12Make this stuff compile.Ben Laurie
2000-11-09tmp2 is not used in BN_mod_mul_montgomery.Bodo Möller
2000-11-08Really stupid glitch (a comment not properly ended) fixed.Richard Levitte
2000-11-08Remove references to RSAref. The glue library is but a memory to fadeRichard Levitte
away now...
2000-11-08BN_CTX-related fixes.Bodo Möller
2000-11-07Constification of LHASH. Contributed by "Paul D. Smith" <psmith@gnu.org>Richard Levitte
I didn't apply all his patches yet, since I have some hesitance about unconstifying. To be pondered.
2000-11-07Constify DH-related code.Richard Levitte
2000-11-07Constify DSA-related code.Richard Levitte
2000-11-07Make sure ERR_get_error() is declared.Richard Levitte