]> pd.if.org Git - zpackage/blob - crypto/libeddsa/lib/burnstack.c
add package signing code
[zpackage] / crypto / libeddsa / lib / burnstack.c
1 #include <stdint.h>
2
3 #include "burn.h"
4 #include "burnstack.h"
5
6
7 #ifdef USE_STACKCLEAN
8
9 /*
10  * burnstack - cleanup our stack
11  */
12 void
13 burnstack(int len)
14 {
15         uint8_t stack[1024];
16         burn(stack, 1024);
17         if (len > 0)
18                 burnstack(len-1024);
19 }
20
21 #endif