libressl-OPENSSL_cleanse(3)

libressl-OPENSSL_cleanse3

Openssl memory cleaning operation

Usage

Crypto Library (libcrypto, -lcrypto)

#include <openssl/crypto.h>

void

OPENSSL_cleanse(void *ptr, size_t len);

Overview

Do not use the interface documented here. It is provided purely for compatibility with legacy application code.

OPENSSL_cleanse() has the same semantics as, and is a wrapper around, explicit_bzero(3).

History

OPENSSL_cleanse() first appeared in OpenSSL 0.9.6h and has been available since OpenBSD 3.4.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.