pull/7532/head
Sean Parkinson 2024-05-15 09:07:04 +10:00
parent 36754683d6
commit b63f308812
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;
}