2020-07-23 02:04:21 +00:00
|
|
|
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
|
|
|
|
/* SPDX-License-Identifier: Unlicense */
|
|
|
|
#include "tomcrypt_private.h"
|
2023-05-10 09:22:14 +00:00
|
|
|
#include <string.h>
|
2015-04-28 23:56:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
@file zeromem.c
|
|
|
|
Zero a block of memory, Tom St Denis
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
Zero a block of memory
|
|
|
|
@param out The destination of the area to zero
|
|
|
|
@param outlen The length of the area to zero (octets)
|
|
|
|
*/
|
2020-07-23 02:04:21 +00:00
|
|
|
void zeromem(volatile void *out, size_t outlen)
|
2015-04-28 23:56:53 +00:00
|
|
|
{
|
|
|
|
LTC_ARGCHKVD(out != NULL);
|
2023-05-10 09:22:14 +00:00
|
|
|
memset((void *)out, 0, outlen);
|
2015-04-28 23:56:53 +00:00
|
|
|
}
|
2023-05-10 09:22:14 +00:00
|
|
|
|
|
|
|
/* $Source$ */
|
|
|
|
/* $Revision$ */
|
|
|
|
/* $Date$ */
|