add wc_ecc_check_key(), import validate option too

This commit is contained in:
toddouska
2015-06-16 11:29:27 -07:00
parent c40dc11ce3
commit a62589f3fc
7 changed files with 193 additions and 49 deletions

View File

@@ -322,8 +322,11 @@ const char* wc_GetErrorString(int error)
case IS_POINT_E:
return "ECC is point on curve failed";
case MP_NOT_INF_E:
return " ECC point expected at infinity error";
case ECC_INF_E:
return " ECC point at infinity error";
case ECC_PRIV_KEY_E:
return " ECC private key is not valid error";
default:
return "unknown error number";