1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
6
* The library is free for all purposes without any express
9
* Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.org
15
Burn stack, Tom St Denis
19
Burn some stack memory
20
@param len amount of stack to burn in bytes
22
void burn_stack(unsigned long len)
24
unsigned char buf[32];
25
zeromem(buf, sizeof(buf));
26
if (len > (unsigned long)sizeof(buf))
27
burn_stack(len - sizeof(buf));
32
/* $Source: /cvs/libtom/libtomcrypt/src/misc/burn_stack.c,v $ */
33
/* $Revision: 1.3 $ */
34
/* $Date: 2005/05/05 14:35:59 $ */