Replaced system SQLite with SQLCipher to support encrypted database
This commit is contained in:
parent
f4198d62a7
commit
177d74700f
534 changed files with 362771 additions and 21 deletions
23
Sources/DataLiteC/libtomcrypt/misc/burn_stack.c
Normal file
23
Sources/DataLiteC/libtomcrypt/misc/burn_stack.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#include "tomcrypt_private.h"
|
||||
|
||||
/**
|
||||
@file burn_stack.c
|
||||
Burn stack, Tom St Denis
|
||||
*/
|
||||
|
||||
/**
|
||||
Burn some stack memory
|
||||
@param len amount of stack to burn in bytes
|
||||
*/
|
||||
void burn_stack(unsigned long len)
|
||||
{
|
||||
unsigned char buf[32];
|
||||
zeromem(buf, sizeof(buf));
|
||||
if (len > (unsigned long)sizeof(buf)) {
|
||||
burn_stack(len - sizeof(buf));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue