mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
--HG-- branch : libtomcrypt extra : convert_revision : fa68f28b581de8ed5f2af8f1ab95b33bcf4a7e18
20 lines
510 B
C
20 lines
510 B
C
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
|
|
*
|
|
* LibTomCrypt is a library that provides various cryptographic
|
|
* algorithms in a highly modular and flexible manner.
|
|
*
|
|
* The library is free for all purposes without any express
|
|
* guarantee it works.
|
|
*
|
|
* Tom St Denis, tomstdenis@iahu.ca, http://libtomcrypt.org
|
|
*/
|
|
#include "mycrypt.h"
|
|
|
|
void zeromem(void *dst, size_t len)
|
|
{
|
|
volatile unsigned char *mem = (unsigned char *)dst;
|
|
_ARGCHK(dst != NULL);
|
|
while (len-- > 0)
|
|
*mem++ = 0;
|
|
}
|