Mercurial > dropbear
comparison mycrypt_custom.h @ 0:d7da3b1e1540 libtomcrypt
put back the 0.95 makefile which was inadvertently merged over
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 31 May 2004 18:21:40 +0000 |
parents | |
children | 09ab3354aa21 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d7da3b1e1540 |
---|---|
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. | |
3 */ | |
4 | |
5 #ifndef MYCRYPT_CUSTOM_H_ | |
6 #define MYCRYPT_CUSTOM_H_ | |
7 | |
8 /* this will sort out which stuff based on the user-config in options.h */ | |
9 #include "../options.h" | |
10 | |
11 #ifdef CRYPT | |
12 #error mycrypt_custom.h should be included before mycrypt.h | |
13 #endif | |
14 | |
15 #define XMALLOC malloc | |
16 #define XREALLOC realloc | |
17 #define XCALLOC calloc | |
18 #define XFREE free | |
19 #define XCLOCK clock | |
20 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC | |
21 | |
22 #ifdef DROPBEAR_SMALL_CODE | |
23 #define SMALL_CODE | |
24 #endif | |
25 | |
26 /* #define LTC_TEST */ | |
27 | |
28 #ifdef DROPBEAR_BLOWFISH_CBC | |
29 #define BLOWFISH | |
30 #endif | |
31 | |
32 #ifdef DROPBEAR_AES128_CBC | |
33 #define RIJNDAEL | |
34 #endif | |
35 | |
36 #ifdef DROPBEAR_TWOFISH128_CBC | |
37 #define TWOFISH | |
38 | |
39 /* enabling just TWOFISH_SMALL will make the binary ~1kB smaller, turning on | |
40 * TWOFISH_TABLES will make it a few kB bigger, but perhaps reduces runtime | |
41 * memory usage? */ | |
42 #define TWOFISH_SMALL | |
43 /*#define TWOFISH_TABLES*/ | |
44 #endif | |
45 | |
46 #ifdef DROPBEAR_3DES_CBC | |
47 #define DES | |
48 #endif | |
49 | |
50 #define CBC | |
51 | |
52 #if defined(DROPBEAR_DSS) && defined(DSS_PROTOK) | |
53 #define SHA512 | |
54 #endif | |
55 | |
56 #define SHA1 | |
57 | |
58 #ifdef DROPBEAR_MD5_HMAC | |
59 #define MD5 | |
60 #endif | |
61 | |
62 #define HMAC | |
63 #define BASE64 | |
64 | |
65 #include <mycrypt.h> | |
66 | |
67 #endif | |
68 |