CRYPTO_secure_zalloc

Allocate num bytes from the secure heap and zero them.

Synopsis

Declared in <openssl/crypto.h>

void*
CRYPTO_secure_zalloc(
    size_t num,
    char const* file,
    int line);

Return Value

Pointer to zeroed secure memory, or NULL on failure.

Parameters

NameDescription
numNumber of bytes to allocate.
fileSource file name for allocation tracking (usually OPENSSL_FILE).
lineSource line for allocation tracking (usually OPENSSL_LINE).