Comment for increased code clarity.
authorBodo Möller <bodo@openssl.org>
Fri, 9 Jun 2000 09:11:30 +0000 (09:11 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 9 Jun 2000 09:11:30 +0000 (09:11 +0000)
crypto/bn/bn_exp2.c

index 0b3e13f6bc394f7e69c14820db8c4f3745a43b85..29029f4c724a6c8cfcbef584347ca068ee73d535 100644 (file)
@@ -240,7 +240,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, BIGNUM *a2,
                                {
                                /* consider bits b-window1+1 .. b for this window */
                                i = b-window1+1;
-                               while (!BN_is_bit_set(p1, i))
+                               while (!BN_is_bit_set(p1, i)) /* works for i<0 */
                                        i++;
                                wpos1 = i;
                                wvalue1 = 1;