Merge pull request #1285 from jrblixt/unitTest_api_addEcc-PR08042017

Add ECC unit test functions.
This commit is contained in:
Chris Conlon
2017-12-29 15:02:07 -07:00
committed by GitHub
2 changed files with 1847 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6948,6 +6948,10 @@ int wc_ecc_mulmod_ex(mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
mp_int mu;
int mpSetup = 0;
if (k == NULL || G == NULL || R == NULL || a == NULL || modulus == NULL) {
return ECC_BAD_ARG_E;
}
if (mp_init(&mu) != MP_OKAY)
return MP_INIT_E;