openssl/crypto/bn
Dr. Stephen Henson 953937bdc6 Fix a horrible BN bug in bn_expand2 which caused BN_add_word() et al to fail
when they cause the destination to expand.

To see how evil this is try this:

#include <pem.h>
main()
{
	BIGNUM *bn = NULL;
        int i;
	bn = BN_new();
	BN_hex2bn(&bn, "FFFFFFFF");
	BN_add_word(bn, 1);
	printf("Value %s\n", BN_bn2hex(bn));
}

This would typically fail before the patch.

It also screws up if you comment out the BN_hex2bn line above or in any
situation where BN_add_word() causes the number of BN_ULONGs in the result
to change (try doubling the number of FFs).
1999-04-15 23:07:00 +00:00
..
asm Remove obsolete files from SSLeay 0.8. 1999-04-06 15:22:55 +00:00
old Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
.cvsignore More .cvsignore stuff to make CVS quiet on our generated files. 1999-01-03 13:17:47 +00:00
bn_add.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_asm.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_blind.c Accept NULL in *_free. 1999-01-07 19:15:59 +00:00
bn_comba.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_div.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_err.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_exp2.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_exp.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_gcd.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_lcl.h Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_lib.c Fix a horrible BN bug in bn_expand2 which caused BN_add_word() et al to fail 1999-04-15 23:07:00 +00:00
bn_m.c Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
bn_mont.c BN_RECURSION causes the stuff in bn_mont.c to fall over for large keys. For 1999-02-26 01:37:34 +00:00
bn_mpi.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_mul.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_opts.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_prime.c Fix clearly untested "clever" hack. 1999-02-25 09:43:26 +00:00
bn_prime.h Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
bn_prime.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
bn_print.c Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
bn_rand.c More exactitude with function arguments. 1999-02-09 23:01:08 +00:00
bn_recp.c Accept NULL in *_free. 1999-01-07 19:15:59 +00:00
bn_shift.c Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
bn_sqr.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
bn_word.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn.err Various cleanups and fixed by Marc and Ralf to start the OpenTLS project 1998-12-22 15:04:48 +00:00
bn.mul Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn.org Add missing funtions from non ANSI section of header files and add missing 1999-03-08 22:46:56 +00:00
bnspeed.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bntest.c Fixes to BN code. Previously the default was to define BN_RECURSION 1999-01-28 10:40:38 +00:00
comba.pl Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
d.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
exp.c Get rid of remaining C++-style comments which strict C compilers hate. 1999-02-27 12:17:40 +00:00
expspeed.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
exptest.c Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
Makefile.ssl New Makefile variables $(RANLIB) and $(PERL). 1999-04-01 12:34:33 +00:00
new Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
test.c Get rid of remaining C++-style comments which strict C compilers hate. 1999-02-27 12:17:40 +00:00
todo Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00