Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge from main trunk: lets see if this works ;-)BRANCH_ASN1 | Dr. Stephen Henson | 2000-12-06 | 197 | -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'. | cvs2svn | 2000-12-06 | 26 | -0/+7491 |
|\ | |||||
| * | Faster BN_mod_sqrt algorithm for p == 5 (8). | Bodo Möller | 2000-12-06 | 2 | -6/+80 |
| | | |||||
| * | Printing "verify ..." should not be counted as a test for the | Bodo Möller | 2000-12-06 | 1 | -1/+1 |
| | | | | | | | | "xxx tests passed" message. | ||||
| * | During the self test, we only want to know what bctest says on | Richard Levitte | 2000-12-06 | 1 | -1/+1 |
| | | | | | | | | stderr... | ||||
| * | Have the self test use bctest to check that bc is sane. | Richard Levitte | 2000-12-06 | 1 | -1/+1 |
| | | |||||
| * | Use bc's "print" feature whenever it is available, | Bodo Möller | 2000-12-06 | 3 | -8/+18 |
| | | | | | | | | not just on certain platforms. | ||||
| * | Add a comment. | Bodo Möller | 2000-12-06 | 1 | -0/+5 |
| | | |||||
| * | Workaround for broken (or missing) bc. | Bodo Möller | 2000-12-06 | 2 | -2/+29 |
| | | |||||
| * | remove useless instruction | Ulf Möller | 2000-12-06 | 1 | -2/+0 |
| | | |||||
| * | Intel assembler version for bn_sub_part_words(). I haven't got | Ulf Möller | 2000-12-06 | 2 | -2/+215 |
| | | | | | | | | reliable timings yet, please try it out! | ||||
| * | another fix for the debug print | Ulf Möller | 2000-12-06 | 1 | -2/+4 |
| | | |||||
| * | test_mod_mul is useful, let's run it more often. | Ulf Möller | 2000-12-06 | 1 | -1/+3 |
| | | |||||
| * | move constants for debug functions to end of file | Ulf Möller | 2000-12-06 | 1 | -2/+6 |
| | | |||||
| * | Update the internal docs. | Richard Levitte | 2000-12-05 | 1 | -9/+10 |
| | | |||||
| * | Typo and additional information about cert-chain building. | Lutz Jänicke | 2000-12-05 | 1 | -1/+4 |
| | | |||||
| * | Add EXAMPLES for SSL_CIPHER_description() output. | Lutz Jänicke | 2000-12-05 | 1 | -0/+9 |
| | | |||||
| * | Discuss http://www.shoup.net/papers/oaep.ps.Z | Bodo Möller | 2000-12-05 | 1 | -1/+16 |
| | | |||||
| * | On Windows, Rainbow uses _stdcall convention under Windows. | Richard Levitte | 2000-12-05 | 1 | -10/+31 |
| | | | | | | | | Spotted by plin <plin@rainbow.com> | ||||
| * | push the flags too | Ulf Möller | 2000-12-05 | 1 | -0/+2 |
| | | |||||
| * | looks like it works now | Ulf Möller | 2000-12-05 | 1 | -4/+4 |
| | | |||||
| * | save registers in the debug output code (return value is overwritten too) | Ulf Möller | 2000-12-05 | 1 | -1/+23 |
| | | |||||
| * | more of the same: add printf() for perlasm. | Ulf Möller | 2000-12-05 | 1 | -11/+39 |
| | | |||||
| * | minor modification to the previous change | Ulf Möller | 2000-12-05 | 1 | -3/+2 |
| | | |||||
| * | PERLASM - the wierdest programming language since Intercal. | Ulf Möller | 2000-12-05 | 1 | -1/+27 |
| | | | | | | | | add debug output facilities. | ||||
| * | Use assert as in the rest of the BN library. | Ulf Möller | 2000-12-05 | 1 | -0/+5 |
| | | |||||
| * | Improve formatting. | Bodo Möller | 2000-12-04 | 1 | -2/+2 |
| | | |||||
| * | It's completely unnecessary to add a compression algorithm that is | Richard Levitte | 2000-12-04 | 1 | -0/+3 |
| | | | | | | | | | | really undefined. Spotted by Jeffrey Altman <jaltman@columbia.edu> | ||||
| * | Remove the last bn_wexpand()s that made us break constness. Of | Richard Levitte | 2000-12-04 | 2 | -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öller | 2000-12-04 | 3 | -3/+3 |
| | | |||||
| * | Sync up with a minor change in lhash.h | Geoff Thorpe | 2000-12-04 | 1 | -2/+2 |
| | | |||||
| * | ANSI C doesn't allow trailing semi-colons after a function's closing brace | Geoff Thorpe | 2000-12-04 | 1 | -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. There | Geoff Thorpe | 2000-12-04 | 1 | -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 Thorpe | 2000-12-04 | 1 | -0/+6 |
| | | |||||
| * | Make the remaining LHASH macro changes. This should leave no remaining | Geoff Thorpe | 2000-12-04 | 6 | -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 Laurie | 2000-12-03 | 3 | -7/+13 |
| | | |||||
| * | include <limits.h> | Bodo Möller | 2000-12-03 | 1 | -0/+1 |
| | | |||||
| * | Don't allow BIGNUMs to become so large that computations with dmax | Bodo Möller | 2000-12-03 | 3 | -0/+8 |
| | | | | | | | | might overflow. | ||||
| * | Use the new LHASH macros to declare type-safe wrapper functions that can | Geoff Thorpe | 2000-12-02 | 2 | -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 and | Geoff Thorpe | 2000-12-02 | 1 | -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 Levitte | 2000-12-02 | 1 | -0/+7 |
| | | |||||
| * | last commit was wrong. Now it works. :) | Ulf Möller | 2000-12-02 | 1 | -2/+2 |
| | | |||||
| * | argl | Ulf Möller | 2000-12-02 | 1 | -1/+1 |
| | | |||||
| * | remember the problem with ftime() | Ulf Möller | 2000-12-02 | 1 | -1/+1 |
| | | |||||
| * | forgot to remove the loop variable | Ulf Möller | 2000-12-02 | 1 | -8/+0 |
| | | |||||
| * | Loops like this one: | Ulf Möller | 2000-12-02 | 1 | -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öller | 2000-12-02 | 1 | -2/+2 |
| | | |||||
| * | Note the bntest change. | Ulf Möller | 2000-12-02 | 1 | -5/+7 |
| | | | | | | | | The *_part_words functions are not static. | ||||
| * | New function BN_bntest_rand() to detect more BN library bugs. | Ulf Möller | 2000-12-02 | 3 | -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öller | 2000-12-02 | 3 | -13/+29 |
| | |