Geoff Thorpe 5d735465d1 The efforts to eliminate the dual-representation of zero and to ensure
bignums are passed in and out of functions and APIs in a consistent form
has highlighted that zero-valued bignums don't need any allocated word
data. The use of BN_set_word() to initialise a bignum to zero causes
needless allocation and gives it a return value that must be checked. This
change converts BN_zero() to a self-contained macro that has no
return/expression value and does not cause any expansion of bignum data.

Note, it would be tempting to rewrite the deprecated version as a
success-valued comma expression, such as;
   #define BN_zero(a) ((a)->top = (a)->neg = 0, 1)
However, this evaluates 'a' twice and would confuse initialisation loops
(eg. while(..) { BN_zero(bn++) } ). As such, the deprecated version
continues to use BN_set_word().
2004-03-13 23:04:15 +00:00
..
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2004-02-10 18:46:10 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-06-19 16:56:48 +00:00
2003-12-27 15:02:56 +00:00
2004-02-01 13:39:51 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2004-03-04 21:44:39 +00:00
2004-03-05 23:39:42 +00:00
2003-11-28 13:10:58 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2004-01-29 02:55:43 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2003-12-27 14:59:07 +00:00
2004-01-21 08:17:08 +00:00
2003-12-27 14:59:07 +00:00
2003-06-26 10:26:42 +00:00
2003-12-27 14:59:07 +00:00
2004-03-10 01:20:26 +00:00
2002-11-13 18:10:30 +00:00
2000-02-01 02:21:16 +00:00
2002-08-09 22:34:57 +00:00
2003-11-28 13:10:58 +00:00
2003-09-09 23:44:39 +00:00
2001-07-05 10:20:07 +00:00
2003-02-13 13:21:13 +00:00
2003-11-28 13:10:58 +00:00
2003-11-28 13:10:58 +00:00