1 // SPDX-License-Identifier: BSD-2-Clause
2 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3  *
4  * LibTomCrypt is a library that provides various cryptographic
5  * algorithms in a highly modular and flexible manner.
6  *
7  * The library is free for all purposes without any express
8  * guarantee it works.
9  */
10 #include "tomcrypt_private.h"
11 
12 /**
13    @file burn_stack.c
14    Burn stack, Tom St Denis
15 */
16 
17 /**
18    Burn some stack memory
19    @param len amount of stack to burn in bytes
20 */
burn_stack(unsigned long len)21 void burn_stack(unsigned long len)
22 {
23    unsigned char buf[len];
24    zeromem(buf, sizeof(buf));
25 }
26 
27 
28 
29 /* ref:         $Format:%D$ */
30 /* git commit:  $Format:%H$ */
31 /* commit time: $Format:%ai$ */
32