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
13 Burn stack, Tom St Denis
17 Burn some stack memory
18 @param len amount of stack to burn in bytes
20 void burn_stack(unsigned long len)
22 unsigned char buf[32];
23 zeromem(buf, sizeof(buf));
24 if (len > (unsigned long)sizeof(buf))
25 burn_stack(len - sizeof(buf));
30 /* ref: $Format:%D$ */
31 /* git commit: $Format:%H$ */
32 /* commit time: $Format:%ai$ */