Bitcoin
Functions
cleanse.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Functions

void memory_cleanse (void *ptr, size_t len)
 

Function Documentation

◆ memory_cleanse()

void memory_cleanse ( void *  ptr,
size_t  len 
)

Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write operation will not be optimized out by the compiler.