comparison libtomcrypt/src/headers/tomcrypt_custom.h @ 382:0cbe8f6dbf9e

propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head 2af22fb4e878750b88f80f90d439b316d229796f) to branch 'au.asn.ucc.matt.dropbear' (head 02c413252c90e9de8e03d91e9939dde3029f5c0a)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Jan 2007 02:41:05 +0000
parents 1b9e69c058d2
children a05fb340a95d
comparison
equal deleted inserted replaced
379:b66a00272a90 382:0cbe8f6dbf9e
3 3
4 /* this will sort out which stuff based on the user-config in options.h */ 4 /* this will sort out which stuff based on the user-config in options.h */
5 #include "options.h" 5 #include "options.h"
6 6
7 /* macros for various libc functions you can change for embedded targets */ 7 /* macros for various libc functions you can change for embedded targets */
8 #ifndef XMALLOC
9 #ifdef malloc
10 #define LTC_NO_PROTOTYPES
11 #endif
8 #define XMALLOC malloc 12 #define XMALLOC malloc
13 #endif
14 #ifndef XREALLOC
15 #ifdef realloc
16 #define LTC_NO_PROTOTYPES
17 #endif
9 #define XREALLOC realloc 18 #define XREALLOC realloc
19 #endif
20 #ifndef XCALLOC
21 #ifdef calloc
22 #define LTC_NO_PROTOTYPES
23 #endif
10 #define XCALLOC calloc 24 #define XCALLOC calloc
25 #endif
26 #ifndef XFREE
27 #ifdef free
28 #define LTC_NO_PROTOTYPES
29 #endif
11 #define XFREE free 30 #define XFREE free
31 #endif
12 32
33 #ifndef XMEMSET
34 #ifdef memset
35 #define LTC_NO_PROTOTYPES
36 #endif
13 #define XMEMSET memset 37 #define XMEMSET memset
38 #endif
39 #ifndef XMEMCPY
40 #ifdef memcpy
41 #define LTC_NO_PROTOTYPES
42 #endif
14 #define XMEMCPY memcpy 43 #define XMEMCPY memcpy
44 #endif
45 #ifndef XMEMCMP
46 #ifdef memcmp
47 #define LTC_NO_PROTOTYPES
48 #endif
49 #define XMEMCMP memcmp
50 #endif
51 #ifndef XSTRCMP
52 #ifdef strcmp
53 #define LTC_NO_PROTOTYPES
54 #endif
55 #define XSTRCMP strcmp
56 #endif
15 57
58 #ifndef XCLOCK
16 #define XCLOCK clock 59 #define XCLOCK clock
60 #endif
61 #ifndef XCLOCKS_PER_SEC
17 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC 62 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC
63 #endif
18 64
65 #define LTC_NO_PRNGS
66 #define LTC_NO_PK
19 #ifdef DROPBEAR_SMALL_CODE 67 #ifdef DROPBEAR_SMALL_CODE
20 #define LTC_SMALL_CODE 68 #define LTC_SMALL_CODE
21 #endif 69 #endif
22
23 /* These spit out warnings etc */ 70 /* These spit out warnings etc */
24 #define LTC_NO_ROLC 71 #define LTC_NO_ROLC
25 72
26 /* Enable self-test test vector checking */ 73 /* Enable self-test test vector checking */
27 /* Not for dropbear */ 74 /* Not for dropbear */
82 #define BASE64 129 #define BASE64
83 130
84 /* default no functions */ 131 /* default no functions */
85 #define LTC_MUTEX_GLOBAL(x) 132 #define LTC_MUTEX_GLOBAL(x)
86 #define LTC_MUTEX_PROTO(x) 133 #define LTC_MUTEX_PROTO(x)
134 #define LTC_MUTEX_TYPE(x)
135 #define LTC_MUTEX_INIT(x)
87 #define LTC_MUTEX_LOCK(x) 136 #define LTC_MUTEX_LOCK(x)
88 #define LTC_MUTEX_UNLOCK(x) 137 #define LTC_MUTEX_UNLOCK(x)
89 #define FORTUNA_POOLS 0 138 #define FORTUNA_POOLS 0
90 139
91 #endif 140 #endif
92 141
142 /* Debuggers */
143
144 /* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and RC4 work (see the code) */
145 /* #define LTC_VALGRIND */
146
147 #endif
148
149
93 150
94 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */ 151 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */
95 /* $Revision: 1.17 $ */ 152 /* $Revision: 1.66 $ */
96 /* $Date: 2005/06/19 18:00:28 $ */ 153 /* $Date: 2006/12/04 02:50:11 $ */