forked from wolfSSL/wolfssl
Make sure ecc key is always memset to 0
This commit is contained in:
@ -4899,6 +4899,7 @@ static int wc_ecc_import_raw_private(ecc_key* key, const char* qx,
|
|||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XMEMSET(key, 0, sizeof(ecc_key));
|
||||||
/* set curve type and index */
|
/* set curve type and index */
|
||||||
err = wc_ecc_set_curve(key, 0, curve_id);
|
err = wc_ecc_set_curve(key, 0, curve_id);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
Reference in New Issue
Block a user