Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write operation will not be optimized out by the compiler.
Declared in <support/cleanse.h>
void
memory_cleanse(
void* ptr,
size_t len);
| Name | Description |
|---|---|
| ptr | Pointer to the start of the buffer to overwrite. |
| len | Number of bytes to overwrite with zeros. |