Skip to content

Commit

Permalink
Squared result was stored in the wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Mar 23, 2011
1 parent 921be35 commit e071a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bn_mp_expt_d.c
Expand Up @@ -38,7 +38,7 @@ int mp_expt_d (mp_int * a, mp_digit b, mp_int * c)
}

/* square */
if (b > 1 && (res = mp_sqr (c, c)) != MP_OKAY) {
if (b > 1 && (res = mp_sqr (&g, &g)) != MP_OKAY) {
mp_clear (&g);
return res;
}
Expand Down

0 comments on commit e071a03

Please sign in to comment.