hcrypto: Use memset_s() when clearing sensitive buffers

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2022-02-17 15:34:32 +13:00
committed by Jeffrey Altman
parent 88ea8039e3
commit 20f038f4f0
11 changed files with 19 additions and 19 deletions

View File

@@ -160,7 +160,7 @@ RSA_free(RSA *rsa)
free_if(rsa->iqmp);
#undef free_if
memset(rsa, 0, sizeof(*rsa));
memset_s(rsa, sizeof(*rsa), 0, sizeof(*rsa));
free(rsa);
}