diff options
Diffstat (limited to 'src/crypto/fipsmodule/ec/oct.c')
-rw-r--r-- | src/crypto/fipsmodule/ec/oct.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crypto/fipsmodule/ec/oct.c b/src/crypto/fipsmodule/ec/oct.c index 38a3342e..19e17a7c 100644 --- a/src/crypto/fipsmodule/ec/oct.c +++ b/src/crypto/fipsmodule/ec/oct.c @@ -316,20 +316,20 @@ int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, // tmp1 := tmp1 + a*x if (group->a_is_minus3) { - if (!bn_mod_lshift1_quick_ctx(tmp2, x, &group->field, ctx) || - !bn_mod_add_quick_ctx(tmp2, tmp2, x, &group->field, ctx) || - !bn_mod_sub_quick_ctx(tmp1, tmp1, tmp2, &group->field, ctx)) { + if (!bn_mod_lshift1_consttime(tmp2, x, &group->field, ctx) || + !bn_mod_add_consttime(tmp2, tmp2, x, &group->field, ctx) || + !bn_mod_sub_consttime(tmp1, tmp1, tmp2, &group->field, ctx)) { goto err; } } else { if (!BN_mod_mul(tmp2, a, x, &group->field, ctx) || - !bn_mod_add_quick_ctx(tmp1, tmp1, tmp2, &group->field, ctx)) { + !bn_mod_add_consttime(tmp1, tmp1, tmp2, &group->field, ctx)) { goto err; } } // tmp1 := tmp1 + b - if (!bn_mod_add_quick_ctx(tmp1, tmp1, b, &group->field, ctx)) { + if (!bn_mod_add_consttime(tmp1, tmp1, b, &group->field, ctx)) { goto err; } |