Convert openssl code not to assume the deprecated form of BN_zero().
authorGeoff Thorpe <geoff@openssl.org>
Sat, 13 Mar 2004 23:57:20 +0000 (23:57 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Sat, 13 Mar 2004 23:57:20 +0000 (23:57 +0000)
commitb6358c89a10128692875fb92921b663c4d079a1e
treed36362a84ee41209484b4b088c2b9d1728bfc613
parent5d735465d1b5b7853506979946ad5730cc3615bb
Convert openssl code not to assume the deprecated form of BN_zero().

Remove certain redundant BN_zero() initialisations, because BN_CTX_get(),
BN_init(), [etc] already initialise to zero.

Correct error checking in bn_sqr.c, and be less wishy-wash about how/why
the result's 'top' value is set (note also, 'max' is always > 0 at this
point).
15 files changed:
CHANGES
crypto/bn/bn_exp.c
crypto/bn/bn_exp2.c
crypto/bn/bn_gf2m.c
crypto/bn/bn_mont.c
crypto/bn/bn_mul.c
crypto/bn/bn_nist.c
crypto/bn/bn_rand.c
crypto/bn/bn_recp.c
crypto/bn/bn_sqr.c
crypto/bn/bn_sqrt.c
crypto/ec/ec2_mult.c
crypto/ec/ec2_smpl.c
crypto/ec/ec_lib.c
crypto/ec/ecp_smpl.c