Overwrite len bytes at ptr with zeros in a way that resists compiler elision.

Synopsis

Declared in <openssl/crypto.h>

void
OPENSSL_cleanse(
    void* ptr,
    size_t len);

Parameters

Name

Description

ptr

Buffer to scrub (may be NULL when len is 0).

len

Number of bytes to clear.

Created with MrDocs