Merge pull request #829 from cconlon/ecc_import

fix curve selection on ecc private only import
This commit is contained in:
toddouska
2017-04-03 15:44:42 -07:00
committed by GitHub

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)