summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge from main trunk: lets see if this works ;-)BRANCH_ASN1Dr. Stephen Henson2000-12-06197-3600/+6441
| | | | | | | | This involved the use of some temporary macros which handle the partial constification. They cast away const but this will go away when constification is handled in the main ASN1 code.
* This commit was manufactured by cvs2svn to create branch 'BRANCH_ASN1'.cvs2svn2000-12-0626-0/+7491
|\
| * Faster BN_mod_sqrt algorithm for p == 5 (8).Bodo Möller2000-12-062-6/+80
| |
| * Printing "verify ..." should not be counted as a test for theBodo Möller2000-12-061-1/+1
| | | | | | | | "xxx tests passed" message.
| * During the self test, we only want to know what bctest says onRichard Levitte2000-12-061-1/+1
| | | | | | | | stderr...
| * Have the self test use bctest to check that bc is sane.Richard Levitte2000-12-061-1/+1
| |
| * Use bc's "print" feature whenever it is available,Bodo Möller2000-12-063-8/+18
| | | | | | | | not just on certain platforms.
| * Add a comment.Bodo Möller2000-12-061-0/+5
| |
| * Workaround for broken (or missing) bc.Bodo Möller2000-12-062-2/+29
| |
| * remove useless instructionUlf Möller2000-12-061-2/+0
| |
| * Intel assembler version for bn_sub_part_words(). I haven't gotUlf Möller2000-12-062-2/+215
| | | | | | | | reliable timings yet, please try it out!
| * another fix for the debug printUlf Möller2000-12-061-2/+4
| |
| * test_mod_mul is useful, let's run it more often.Ulf Möller2000-12-061-1/+3
| |
| * move constants for debug functions to end of fileUlf Möller2000-12-061-2/+6
| |
| * Update the internal docs.Richard Levitte2000-12-051-9/+10
| |
| * Typo and additional information about cert-chain building.Lutz Jänicke2000-12-051-1/+4
| |
| * Add EXAMPLES for SSL_CIPHER_description() output.Lutz Jänicke2000-12-051-0/+9
| |
| * Discuss http://www.shoup.net/papers/oaep.ps.ZBodo Möller2000-12-051-1/+16
| |
| * On Windows, Rainbow uses _stdcall convention under Windows.Richard Levitte2000-12-051-10/+31
| | | | | | | | Spotted by plin <plin@rainbow.com>
| * push the flags tooUlf Möller2000-12-051-0/+2
| |
| * looks like it works nowUlf Möller2000-12-051-4/+4
| |
| * save registers in the debug output code (return value is overwritten too)Ulf Möller2000-12-051-1/+23
| |
| * more of the same: add printf() for perlasm.Ulf Möller2000-12-051-11/+39
| |
| * minor modification to the previous changeUlf Möller2000-12-051-3/+2
| |
| * PERLASM - the wierdest programming language since Intercal.Ulf Möller2000-12-051-1/+27
| | | | | | | | add debug output facilities.
| * Use assert as in the rest of the BN library.Ulf Möller2000-12-051-0/+5
| |
| * Improve formatting.Bodo Möller2000-12-041-2/+2
| |
| * It's completely unnecessary to add a compression algorithm that isRichard Levitte2000-12-041-0/+3
| | | | | | | | | | really undefined. Spotted by Jeffrey Altman <jaltman@columbia.edu>
| * Remove the last bn_wexpand()s that made us break constness. OfRichard Levitte2000-12-042-54/+94
| | | | | | | | | | | | | | | | | | course, that means we need to handle the cases where the two arrays to bn_mul_recursive() and bn_mul_part_recursive() differ in size. I haven't yet changed the comments that describe bn_mul_recursive() and bn_mul_part_recursive(). I want this to be tested by more people before I consider this change final. Please test away!
| * Change error message to "bignum too long"Bodo Möller2000-12-043-3/+3
| |
| * Sync up with a minor change in lhash.hGeoff Thorpe2000-12-041-2/+2
| |
| * ANSI C doesn't allow trailing semi-colons after a function's closing braceGeoff Thorpe2000-12-041-6/+3
| | | | | | | | | | | | so these macros probably shouldn't be used like that at all. So, this change removes the misleading comment and also adds an implicit trailing semi-colon to the DECLARE macros so they too don't require one.
| * Update the documentation to the current state of the LHASH changes. ThereGeoff Thorpe2000-12-041-7/+50
| | | | | | | | | | will probably be more when the lh_doall[_arg] callbacks are similarly tidied up, but this 'pod' should now be current.
| * Make a note of the LHASH changes.Geoff Thorpe2000-12-041-0/+6
| |
| * Make the remaining LHASH macro changes. This should leave no remainingGeoff Thorpe2000-12-046-15/+39
| | | | | | | | | | cases of function pointer casting in lh_new() calls - and leave only the lh_doall and lh_doall_arg cases to be finished.
| * Fix warnings.Ben Laurie2000-12-033-7/+13
| |
| * include <limits.h>Bodo Möller2000-12-031-0/+1
| |
| * Don't allow BIGNUMs to become so large that computations with dmaxBodo Möller2000-12-033-0/+8
| | | | | | | | might overflow.
| * Use the new LHASH macros to declare type-safe wrapper functions that canGeoff Thorpe2000-12-022-17/+26
| | | | | | | | | | | | | | | | be used as the hash/compare callbacks without function pointer casting. For now, this is just happening in the apps/ directory whilst a few people check the approach. The rest of the library will be moved across to the same idea if there's no problems with this.
| * Next step in tidying up the LHASH code. This commit defines DECLARE andGeoff Thorpe2000-12-021-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IMPLEMENT macros for defining wrapper functions for "hash" and "cmp" callbacks that are specific to the underlying item type in a hash-table. This prevents function pointer casting altogether, and also provides some type-safety because the macro does per-variable casting from the (void *) type used in LHASH itself to the type declared in the macro - and if that doesn't match the prototype expected by the "hash" or "cmp" function then a compiler error will result. NB: IMPLEMENT macros are not required unless predeclared forms are required (either in a header file, or further up in a C file than the implementation needs to be). The DECLARE macros must occur after the type-specific hash/cmp callbacks are declared. Also, the IMPLEMENT and DECLARE macros are such that they can be prefixed with "static" if desired and a trailing semi-colon should be appended (making it look more like a regular declaration and easier on auto-formatting text-editors too). Now that these macros are defined, I will next be commiting changes to a number of places in the library where the casting was doing bad things. After that, the final step will be to make the analogous changes for the lh_doall and lh_doall_arg functions (more specifically, their callback parameters).
| * Add a comment to explain the purpose of bn_cmp_part_words().Richard Levitte2000-12-021-0/+7
| |
| * last commit was wrong. Now it works. :)Ulf Möller2000-12-021-2/+2
| |
| * arglUlf Möller2000-12-021-1/+1
| |
| * remember the problem with ftime()Ulf Möller2000-12-021-1/+1
| |
| * forgot to remove the loop variableUlf Möller2000-12-021-8/+0
| |
| * Loops like this one:Ulf Möller2000-12-021-28/+0
| | | | | | | | | | | | | | | | if (bp == NULL) for (j=0; j<10000; j++) BN_add(&c,&a,&b); seem to be pretty useless, and bp never is NULL anyway.
| * Move the rijndael "test" to the bf and cast tests.Ulf Möller2000-12-021-2/+2
| |
| * Note the bntest change.Ulf Möller2000-12-021-5/+7
| | | | | | | | The *_part_words functions are not static.
| * New function BN_bntest_rand() to detect more BN library bugs.Ulf Möller2000-12-023-35/+63
| | | | | | | | | | | | The bn_cmp_part_words bug was only caught in the BN_mod_mul() test, not in the BN_mul() test, so apparently the choice of parameters in some cases is bad.
| * Fix bn_cmp_part_words() and move it to bn_lib.c.Ulf Möller2000-12-023-13/+29
| |