mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 08:50:49 +02:00
F-2207 - Add ForceZero of ECC private key before free in PKCS#11
This commit is contained in:
@@ -1539,6 +1539,8 @@ static int Pkcs11CreateEccPrivateKey(CK_OBJECT_HANDLE* privateKey,
|
||||
ret = WC_HW_E;
|
||||
}
|
||||
}
|
||||
if (priv != NULL)
|
||||
ForceZero(priv, privLen);
|
||||
XFREE(priv, private_key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user