Bitcoin
Functions
cleanse.cpp File Reference
#include <support/cleanse.h>
#include <cstring>

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.