mirror of https://github.com/wolfSSL/wolfssl.git
wolfcrypt/src/ecc.c: fix identicalInnerCondition in ecc_mulmod().
parent
cd79be4928
commit
c5021c0690
|
@ -3250,10 +3250,8 @@ static int ecc_mulmod(const mp_int* k, ecc_point* P, ecc_point* Q,
|
||||||
#else
|
#else
|
||||||
/* Swap R[0] and R[1] if other index is needed. */
|
/* Swap R[0] and R[1] if other index is needed. */
|
||||||
swap ^= (int)b;
|
swap ^= (int)b;
|
||||||
if (err == MP_OKAY) {
|
err = mp_cond_swap_ct_ex(R[0]->x, R[1]->x, (int)modulus->used, swap,
|
||||||
err = mp_cond_swap_ct_ex(R[0]->x, R[1]->x, (int)modulus->used, swap,
|
tmp);
|
||||||
tmp);
|
|
||||||
}
|
|
||||||
if (err == MP_OKAY) {
|
if (err == MP_OKAY) {
|
||||||
err = mp_cond_swap_ct_ex(R[0]->y, R[1]->y, (int)modulus->used, swap,
|
err = mp_cond_swap_ct_ex(R[0]->y, R[1]->y, (int)modulus->used, swap,
|
||||||
tmp);
|
tmp);
|
||||||
|
|
Loading…
Reference in New Issue