Mercurial > dropbear
comparison libtomcrypt/src/headers/tomcrypt_custom.h @ 293:9d110777f345 contrib-blacklist
propagate from branch 'au.asn.ucc.matt.dropbear' (head 7ad1775ed65e75dbece27fe6b65bf1a234db386a)
to branch 'au.asn.ucc.matt.dropbear.contrib.blacklist' (head 1d86a4f0a401cc68c2670d821a2f6366c37af143)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 10 Mar 2006 06:31:29 +0000 |
parents | 1b9e69c058d2 |
children | 0cbe8f6dbf9e |
comparison
equal
deleted
inserted
replaced
247:c07de41b53d7 | 293:9d110777f345 |
---|---|
1 #ifndef TOMCRYPT_CUSTOM_H_ | |
2 #define TOMCRYPT_CUSTOM_H_ | |
3 | |
4 /* this will sort out which stuff based on the user-config in options.h */ | |
5 #include "options.h" | |
6 | |
7 /* macros for various libc functions you can change for embedded targets */ | |
8 #define XMALLOC malloc | |
9 #define XREALLOC realloc | |
10 #define XCALLOC calloc | |
11 #define XFREE free | |
12 | |
13 #define XMEMSET memset | |
14 #define XMEMCPY memcpy | |
15 | |
16 #define XCLOCK clock | |
17 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC | |
18 | |
19 #ifdef DROPBEAR_SMALL_CODE | |
20 #define LTC_SMALL_CODE | |
21 #endif | |
22 | |
23 /* These spit out warnings etc */ | |
24 #define LTC_NO_ROLC | |
25 | |
26 /* Enable self-test test vector checking */ | |
27 /* Not for dropbear */ | |
28 //#define LTC_TEST | |
29 | |
30 /* clean the stack of functions which put private information on stack */ | |
31 /* #define LTC_CLEAN_STACK */ | |
32 | |
33 /* disable all file related functions */ | |
34 /* #define LTC_NO_FILE */ | |
35 | |
36 /* disable all forms of ASM */ | |
37 /* #define LTC_NO_ASM */ | |
38 | |
39 /* disable FAST mode */ | |
40 /* #define LTC_NO_FAST */ | |
41 | |
42 /* disable BSWAP on x86 */ | |
43 /* #define LTC_NO_BSWAP */ | |
44 | |
45 | |
46 #ifdef DROPBEAR_BLOWFISH_CBC | |
47 #define BLOWFISH | |
48 #endif | |
49 | |
50 #ifdef DROPBEAR_AES_CBC | |
51 #define RIJNDAEL | |
52 #endif | |
53 | |
54 #ifdef DROPBEAR_TWOFISH_CBC | |
55 #define TWOFISH | |
56 | |
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 | |
59 * memory usage? */ | |
60 #define TWOFISH_SMALL | |
61 /*#define TWOFISH_TABLES*/ | |
62 #endif | |
63 | |
64 #ifdef DROPBEAR_3DES_CBC | |
65 #define DES | |
66 #endif | |
67 #define CBC | |
68 | |
69 #if defined(DROPBEAR_DSS) && defined(DSS_PROTOK) | |
70 #define SHA512 | |
71 #endif | |
72 | |
73 #define SHA1 | |
74 | |
75 #ifdef DROPBEAR_MD5_HMAC | |
76 #define MD5 | |
77 #endif | |
78 | |
79 #define HMAC | |
80 | |
81 /* Various tidbits of modern neatoness */ | |
82 #define BASE64 | |
83 | |
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 | |
90 | |
91 #endif | |
92 | |
93 | |
94 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */ | |
95 /* $Revision: 1.17 $ */ | |
96 /* $Date: 2005/06/19 18:00:28 $ */ |