Totally remove the supposedly 'faster' variant in
authorBodo Möller <bodo@openssl.org>
Tue, 19 Sep 2000 23:25:00 +0000 (23:25 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 19 Sep 2000 23:25:00 +0000 (23:25 +0000)
commitfe03519704d5f533722e061009ca079e7217cfd2
treef5b344f73719a46269834d13a2c06e2c544563c8
parentb004872c5959f8921571dd3d6164672faee13f97
Totally remove the supposedly 'faster' variant in
BN_mod_mul_montgomery, which calls bn_sqr_recursive
without much preparation.

bn_sqr_recursive requires the length of its argument to be
a power of 2, which is not always the case here.
There's no reason for not using BN_sqr -- if a simpler
approach to squaring made sense, then why not change
BN_sqr?  (Using BN_sqr should also speed up DH where g is chosen
such that it becomes small [e.g., 2] when converted
to Montgomery representation.)

Case closed :-)
CHANGES
crypto/bn/bn_mont.c
crypto/bn/bn_sqr.c