divide the correct number...
authorUlf Möller <ulf@openssl.org>
Fri, 25 Feb 2000 00:14:50 +0000 (00:14 +0000)
committerUlf Möller <ulf@openssl.org>
Fri, 25 Feb 2000 00:14:50 +0000 (00:14 +0000)
crypto/bn/bn_recp.c

index bc0787d75a769d2bd05b5af5ce7a0970be0733b4..20a6da4efd9186a8dcc03e28d03c86a9c7199817 100644 (file)
@@ -197,7 +197,7 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BN_RECP_CTX *recp,
                           5383BF622A20B17E1BAA999336988B82B93F5FB77B55B4B68
                           9412000000000031 / 298EB5957DBFB8CBB2CC2A9F789D2B5
                           fails, for example. */
                           5383BF622A20B17E1BAA999336988B82B93F5FB77B55B4B68
                           9412000000000031 / 298EB5957DBFB8CBB2CC2A9F789D2B5
                           fails, for example. */
-                       ret=BN_div(dv,rem,a,&(recp->N),ctx);
+                       ret=BN_div(dv,rem,m,&(recp->N),ctx);
 #else
                        BNerr(BN_F_BN_MOD_MUL_RECIPROCAL,BN_R_BAD_RECIPROCAL);
 #endif
 #else
                        BNerr(BN_F_BN_MOD_MUL_RECIPROCAL,BN_R_BAD_RECIPROCAL);
 #endif