mbedtls_zeroize_and_free() function
Securely zeroize a buffer then free it. Similar to making consecutive calls to \c mbedtls_platform_zeroize() and \c mbedtls_free(), but has code size savings, and potential for optimisation in the future. Guaranteed to be a no-op if \p buf is \c NULL and \p len is 0.
Syntax
void mbedtls_zeroize_and_free(void *buf,
size_t len);
Arguments
buf
Buffer to be zeroized then freed.
len
Length of the buffer in bytes