aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bntest.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix BN_kronecker so that it works correctly if 'a' is negativeBodo Möller2000-11-291-2/+2
| | | | (we need the two's complement of BN_lsw then).
* BN_to_montgomery expects its inputs to be in the interval 0 .. modulus-1,Bodo Möller2000-11-291-0/+3
| | | | | | | | | | | | | | | | so we have to reduce the random numbers used in test_mont. Before this change, test_mont failed in [debug-]solaris-sparcv9-gcc configurations ("Montgomery multiplication test failed!" because the multiplication result obtained with Montgomery multiplication differed from the result obtained by BN_mod_mul). Substituing the old version of bn_gcd.c (BN_mod_inverse) did not avoid the problem. The strange thing is that it I did not observe any problems when using debug-solaris-sparcv8-gcc and solaris-sparcv9-cc, as well as when compiling OpenSSL 0.9.6 in the solaric-sparcv9-gcc configuration on the same system.
* Fix warnings in expspeed.c (but the segmentation fault remains)Bodo Möller2000-11-291-1/+4
| | | | | | | | Improve readability of bn_shift.c. Add comment in bn_lib.c (why zero data between top and max?) Change bntest.c output for BN_kronecker test
* Implement BN_kronecker test.Bodo Möller2000-11-291-2/+78
| | | | | Modify "CHANGES" entry for BN_mod_inverse (it's not just avoiding BN_div that increases performance, avoiding BN_mul also helps)
* Correct a bug in BN_kronecker.Bodo Möller2000-11-281-0/+10
| | | | Sketch the test for BN_kronecker.
* Add test_kron function, which will contain a test for BN_kronecker.Bodo Möller2000-11-281-0/+11
|
* Undo previous commit, which was an accident.Bodo Möller2000-11-271-4/+0
|
* Fix BN_is_... macros.Bodo Möller2000-11-271-0/+4
| | | | | | | Fix BN_gcd. Analyze BN_mod_inverse. Add BN_kronecker. "make update".
* More BN_mod_... functions.Bodo Möller2000-11-261-0/+10
|
* Constify the BIGNUM routines a bit more. The only trouble were theRichard Levitte2000-11-061-0/+1
| | | | | | two functions that did expansion on in parameters (BN_mul() and BN_sqr()). The problem was solved by making bn_dup_expand() which is a mix of bn_expand2() and BN_dup().
* Update comment.Bodo Möller2000-03-021-1/+2
|
* Don't call BN_rand with zero bits in bntest.cDr. Stephen Henson2000-02-271-1/+1
|
* Enhance consistency by using BIO_flush() instead of fflush().Richard Levitte2000-02-251-17/+17
|
* Do fflush(stdout) when there was an error.Bodo Möller2000-02-241-0/+1
|
* correct macro.Ulf Möller2000-02-231-1/+1
|
* test_mont was exercising 100-bit multiplication modulus X*I-bit, whereAndy Polyakov2000-02-151-1/+1
| | | | | | | X is 5120 on 32-bit and 151552 on 64-bit architectures and I varies from 0 to 4. As result the test was *unreasonably* slow and virtually impossible to complete on 64-bit architectures (e.g. IRIX bc couldn't even swallow such long lines).
* Make gcc 2.95.2 happy again, even under ``-Wall -Wshadow -Wpointer-arith ↵Ralf S. Engelschall2000-02-111-1/+1
| | | | | | -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
* Add command line password options to the reamining utilities,Dr. Stephen Henson2000-02-081-3/+3
| | | | amend docs.
* "print" is GNU bc specific.Ulf Möller2000-02-061-1/+1
|
* put missing line back in.Ulf Möller2000-02-061-1/+2
|
* Improve bntest slightly, and fix another bug in the BN library.Ulf Möller2000-02-061-68/+113
|
* enable Montgomery testBodo Möller2000-01-271-3/+6
|
* AFAICS lst1 stands for "lshift test" not "list".Ulf Möller2000-01-211-2/+2
|
* Rename lst1 to list1 to avoid name conflict on some platforms.Bodo Möller2000-01-201-2/+2
|
* - Pseudo-seed the PRNG in programs used for "make test"Bodo Möller2000-01-141-0/+6
| | | | | | | | | because otherwise BN_rand will fail unless DEVRANDOM works, which causes the programs to dump core because they don't check the return value of BN_rand (and if they did, we still couldn't test anything). - add comment to some files that appear not to be used at all.
* Improve support for running everything as a monolithic application.Bodo Möller1999-10-251-0/+5
| | | | Submitted by: Lennart Bång, Bodo Möller
* More DES library cleanups: remove references to srand/randUlf Möller1999-07-151-2/+0
| | | | and delete an unused file.
* Make "make test" fail if bntest fails an internal selfcheck.Ben Laurie1999-06-091-0/+1
|
* Update dependencies.Ben Laurie1999-05-291-6/+28
|
* It was a very bad idea to use #include "../e_os.h" -- when this occursBodo Möller1999-05-211-5/+1
| | | | | | | | | | in cryptlib.h (which is often included as "../cryptlib.h"), then the question remains relative to which directory this is to be interpreted. gcc went one further directory up, as intended; but makedepend thinks differently, and so probably do some C compilers. So the ../ must go away; thus e_os.h goes back into include/openssl (but I now use #include "openssl/e_os.h" instead of <openssl/e_os.h> to make the point) -- and we have another huge bunch of dependency changes. Argh.
* Don't install e_os.h in include/openssl, use it only as a localBodo Möller1999-05-201-1/+7
| | | | include file.
* Add actual testing to bntest...Ben Laurie1999-05-151-18/+165
|
* Remove NOPROTO definitions and error code comments.Ulf Möller1999-04-261-19/+0
|
* Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1999-04-231-6/+6
| | | | | | Submitted by: Reviewed by: PR:
* Change functions to ANSI C.Ulf Möller1999-04-191-42/+17
|
* Fixes to BN code. Previously the default was to define BN_RECURSIONMark J. Cox1999-01-281-0/+46
| | | | | | | | | but the BN code had some problems that would cause failures when doing certificate verification and some other functions. Submitted by: Eric A Young from a C2Net version of SSLeay Reviewed by: Mark J Cox PR:
* Import of old SSLeay release: SSLeay 0.9.1b (unreleased)Ralf S. Engelschall1998-12-211-120/+187
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-14/+16
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+775