Fix wc_MlKemKey_Free to return int instead of void

Co-Authored-By: sean@wolfssl.com <sean@wolfssl.com>
pull/8532/head
Devin AI 2025-03-05 22:42:19 +00:00
parent f4b770c5ab
commit c1215aa93b
1 changed files with 4 additions and 1 deletions

View File

@ -227,8 +227,9 @@ int wc_MlKemKey_Init(MlKemKey* key, int type, void* heap, int devId)
* Free the Kyber key object.
*
* @param [in, out] key Kyber key object to dispose of.
* @return 0 on success.
*/
void wc_MlKemKey_Free(MlKemKey* key)
int wc_MlKemKey_Free(MlKemKey* key)
{
if (key != NULL) {
/* Dispose of PRF object. */
@ -241,6 +242,8 @@ void wc_MlKemKey_Free(MlKemKey* key)
ForceZero(key->priv, sizeof(key->priv));
ForceZero(key->z, sizeof(key->z));
}
return 0;
}
/******************************************************************************/