Logo Search packages:      
Sourcecode: libtomcrypt version File versions  Download package

void zeromem ( void *  out,
size_t  outlen 
)

Zero a block of memory

Parameters:
outThe destination of the area to zero
outlenThe length of the area to zero (octets)

Definition at line 23 of file zeromem.c.

Referenced by burn_stack(), hash_filehandle(), hash_memory(), hash_memory_multi(), and rng_make_prng().

{
   unsigned char *mem = out;
   LTC_ARGCHKVD(out != NULL);
   while (outlen-- > 0) {
      *mem++ = 0;
   }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index