Integrate my implementation of a countermeasure against
authorBodo Möller <bodo@openssl.org>
Thu, 8 Feb 2001 12:20:25 +0000 (12:20 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 8 Feb 2001 12:20:25 +0000 (12:20 +0000)
commit07fc72fea10ee005fae181ce104e0c6ae7a42ea6
tree55b81eff936c035dd5e1c369c586de8b86e84902
parent813c7c415bb29ee75a0c5bab8c3ed6ff22fc203a
Integrate my implementation of a countermeasure against
Bleichenbacher's DSA attack.  With this implementation, the expected
number of iterations never exceeds 2.

New semantics for BN_rand_range():
BN_rand_range(r, min, range) now generates r such that
     min <= r < min+range.
(Previously, BN_rand_range(r, min, max) generated r such that
     min <= r < max.
It is more convenient to have the range; also the previous
prototype was misleading because max was larger than
the actual maximum.)
crypto/bn/bn.h
crypto/bn/bn_err.c
crypto/bn/bn_rand.c
crypto/dsa/dsa_ossl.c
doc/crypto/BN_rand.pod