src/lib/libcrypto/mem_clr.c

13 lines
277 B
C
Raw Normal View History

2024-04-10 23:48:14 +02:00
/* $OpenBSD: mem_clr.c,v 1.5 2024/04/10 14:51:02 beck Exp $ */
/* Ted Unangst places this file in the public domain. */
#include <string.h>
#include <openssl/crypto.h>
void
OPENSSL_cleanse(void *ptr, size_t len)
{
explicit_bzero(ptr, len);
}
2024-04-10 23:48:14 +02:00
LCRYPTO_ALIAS(OPENSSL_cleanse);