1
#ifndef TOMCRYPT_CUSTOM_H_
2
#define TOMCRYPT_CUSTOM_H_
4
/* this will sort out which stuff based on the user-config in options.h */
7
/* macros for various libc functions you can change for embedded targets */
9
#define XREALLOC realloc
10
#define XCALLOC calloc
13
#define XMEMSET memset
14
#define XMEMCPY memcpy
17
#define XCLOCKS_PER_SEC CLOCKS_PER_SEC
19
#ifdef DROPBEAR_SMALL_CODE
20
#define LTC_SMALL_CODE
23
/* These spit out warnings etc */
26
/* Enable self-test test vector checking */
27
/* Not for dropbear */
30
/* clean the stack of functions which put private information on stack */
31
/* #define LTC_CLEAN_STACK */
33
/* disable all file related functions */
34
/* #define LTC_NO_FILE */
36
/* disable all forms of ASM */
37
/* #define LTC_NO_ASM */
39
/* disable FAST mode */
40
/* #define LTC_NO_FAST */
42
/* disable BSWAP on x86 */
43
/* #define LTC_NO_BSWAP */
46
#ifdef DROPBEAR_BLOWFISH_CBC
50
#ifdef DROPBEAR_AES_CBC
54
#ifdef DROPBEAR_TWOFISH_CBC
57
/* enabling just TWOFISH_SMALL will make the binary ~1kB smaller, turning on
58
* TWOFISH_TABLES will make it a few kB bigger, but perhaps reduces runtime
61
/*#define TWOFISH_TABLES*/
64
#ifdef DROPBEAR_3DES_CBC
69
#if defined(DROPBEAR_DSS) && defined(DSS_PROTOK)
75
#ifdef DROPBEAR_MD5_HMAC
81
/* Various tidbits of modern neatoness */
84
/* default no functions */
85
#define LTC_MUTEX_GLOBAL(x)
86
#define LTC_MUTEX_PROTO(x)
87
#define LTC_MUTEX_LOCK(x)
88
#define LTC_MUTEX_UNLOCK(x)
89
#define FORTUNA_POOLS 0
94
/* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */
95
/* $Revision: 1.17 $ */
96
/* $Date: 2005/06/19 18:00:28 $ */