Geoff Thorpe 3cc546a3bb bignum: fix boundary condition in montgomery logic
It's not clear whether this inconsistency could lead to an actual
computation error, but it involved a BIGNUM being passed around the
montgomery logic in an inconsistent state. This was found using flags
-DBN_DEBUG -DBN_DEBUG_RAND, and working backwards from this assertion
in 'ectest';

ectest: bn_mul.c:960: BN_mul: Assertion `(_bnum2->top == 0) ||
(_bnum2->d[_bnum2->top - 1] != 0)' failed

Signed-off-by: Geoff Thorpe <geoff@openssl.org>
(cherry picked from commit a52926189155d906d8c11ff97cbc1e5191d202cd)
2014-04-30 11:53:09 -04:00
..
2012-12-13 12:43:18 +00:00
2011-10-19 14:58:59 +00:00
2009-06-14 10:23:29 +00:00
2012-06-03 22:03:37 +00:00
2007-04-19 15:14:21 +00:00
2010-10-11 23:25:23 +00:00
2012-06-03 22:03:37 +00:00
2013-10-13 19:24:22 +02:00
2014-03-12 14:23:21 +00:00
2011-11-14 21:05:42 +00:00
2011-11-14 21:05:42 +00:00
2005-08-23 04:14:40 +00:00
2014-03-12 14:23:21 +00:00
2011-06-06 11:49:36 +00:00
2002-11-14 11:22:01 +00:00
2014-02-24 13:50:38 +00:00