mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Provide and use internal function mbedtls_zeroize_and_free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
@@ -1637,8 +1637,7 @@ static void *rsa_alt_alloc_wrap(void)
|
||||
|
||||
static void rsa_alt_free_wrap(void *ctx)
|
||||
{
|
||||
mbedtls_platform_zeroize(ctx, sizeof(mbedtls_rsa_alt_context));
|
||||
mbedtls_free(ctx);
|
||||
mbedtls_zeroize_and_free(ctx, sizeof(mbedtls_rsa_alt_context));
|
||||
}
|
||||
|
||||
const mbedtls_pk_info_t mbedtls_rsa_alt_info = {
|
||||
|
||||
Reference in New Issue
Block a user