1
/* This header is meant to be included before mycrypt.h in projects where
2
* you don't want to throw all the defines in a makefile.
5
#ifndef MYCRYPT_CUSTOM_H_
6
#define MYCRYPT_CUSTOM_H_
8
/* this will sort out which stuff based on the user-config in options.h */
9
#include "../options.h"
11
/* macros for various libc functions you can change for embedded targets */
12
#define XMALLOC malloc
13
#define XREALLOC realloc
14
#define XCALLOC calloc
17
#define XMEMSET memset
18
#define XMEMCPY memcpy
21
#define XCLOCKS_PER_SEC CLOCKS_PER_SEC
23
#ifdef DROPBEAR_SMALL_CODE
27
/* Enable self-test test vector checking */
28
/* Not for dropbear */
31
/* clean the stack of functions which put private information on stack */
32
// #define CLEAN_STACK
34
/* disable all file related functions */
39
#ifdef DROPBEAR_BLOWFISH_CBC
43
#ifdef DROPBEAR_AES128_CBC
47
#ifdef DROPBEAR_TWOFISH128_CBC
50
/* enabling just TWOFISH_SMALL will make the binary ~1kB smaller, turning on
51
* TWOFISH_TABLES will make it a few kB bigger, but perhaps reduces runtime
54
/*#define TWOFISH_TABLES*/
57
#ifdef DROPBEAR_3DES_CBC
62
#if defined(DROPBEAR_DSS) && defined(DSS_PROTOK)
68
#ifdef DROPBEAR_MD5_HMAC
74
/* Various tidbits of modern neatoness */
77
#define FORTUNA_POOLS 0