fix curve selection on ecc private only import

This commit is contained in:
Chris Conlon
2017-04-03 09:50:46 -06:00
parent e168d4db09
commit 8cde26a6c5

View File

@@ -4882,7 +4882,7 @@ int wc_ecc_import_private_key_ex(const byte* priv, word32 privSz,
return ret;
/* set key size */
ret = wc_ecc_set_curve(key, privSz-1, curve_id);
ret = wc_ecc_set_curve(key, privSz, curve_id);
}
if (ret != 0)