mirror of https://github.com/wolfSSL/wolfssl.git
fixup
parent
36754683d6
commit
b63f308812
|
@ -4058,10 +4058,10 @@ exit:
|
|||
int wc_ecc_mulmod(const mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
||||
mp_int* modulus, int map)
|
||||
{
|
||||
if ((k != NULL) && (G != NULL) && (mp_iszero(k))) {
|
||||
mp_zero(G->x);
|
||||
mp_zero(G->y);
|
||||
mp_zero(G->z);
|
||||
if ((k != NULL) && (R != NULL) && (mp_iszero(k))) {
|
||||
mp_zero(R->x);
|
||||
mp_zero(R->y);
|
||||
mp_zero(R->z);
|
||||
return MP_OKAY;
|
||||
}
|
||||
return wc_ecc_mulmod_ex(k, G, R, a, modulus, map, NULL);
|
||||
|
|
|
@ -29375,7 +29375,7 @@ static wc_test_ret_t ecc_mulmod_test(ecc_key* key1)
|
|||
ret = WC_TEST_RET_ENC_EC(ret);
|
||||
goto done;
|
||||
}
|
||||
if (!wc_ecc_point_is_at_infinity(&key2->pubkey)) {
|
||||
if (!wc_ecc_point_is_at_infinity(&key3->pubkey)) {
|
||||
ret = WC_TEST_RET_ENC_EC(ret);
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue