Wrapped new unit test API with FIPS macros

This commit is contained in:
Tesfa Mael
2019-04-24 10:02:20 -07:00
parent 6b51f2d5b2
commit edef75c70f
2 changed files with 16 additions and 4 deletions

View File

@@ -3296,6 +3296,13 @@ int wc_ecc_get_curve_id_from_params(int fieldSize,
return ecc_sets[idx].id;
}
/* Returns the curve id in ecc_sets[] that corresponds
* to a given domain parameters pointer.
*
* dp domain parameters pointer
*
* return curve id, from ecc_sets[] on success, negative on error
*/
int wc_ecc_get_curve_id_from_dp_params(const ecc_set_type* dp)
{
int idx;