forked from wolfSSL/wolfssl
Merge pull request #1285 from jrblixt/unitTest_api_addEcc-PR08042017
Add ECC unit test functions.
This commit is contained in:
1843
tests/api.c
1843
tests/api.c
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user