/* LibTomCrypt, modular cryptographic library -- Tom St Denis1*2* LibTomCrypt is a library that provides various cryptographic3* algorithms in a highly modular and flexible manner.4*5* The library is free for all purposes without any express6* guarantee it works.7*/8#include "tomcrypt.h"910/**11@file zeromem.c12Zero a block of memory, Tom St Denis13*/1415/**16Zero a block of memory17@param out The destination of the area to zero18@param outlen The length of the area to zero (octets)19*/20void zeromem(volatile void *out, size_t outlen)21{22volatile char *mem = out;23LTC_ARGCHKVD(out != NULL);24while (outlen-- > 0) {25*mem++ = '\0';26}27}282930