Mercurial > dropbear
comparison src/headers/tomcrypt_custom.h @ 192:9cc34777b479 libtomcrypt
propagate from branch 'au.asn.ucc.matt.ltc-orig' (head 9ba8f01f44320e9cb9f19881105ae84f84a43ea9)
to branch 'au.asn.ucc.matt.dropbear.ltc' (head dbf51c569bc34956ad948e4cc87a0eeb2170b768)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 08 May 2005 06:36:47 +0000 |
parents | 1c15b283127b |
children | 8be64e2c86f4 |
comparison
equal
deleted
inserted
replaced
164:cd1143579f00 | 192:9cc34777b479 |
---|---|
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 #ifndef TOMCRYPT_CUSTOM_H_ | |
5 #define TOMCRYPT_CUSTOM_H_ | |
6 | |
7 /* this will sort out which stuff based on the user-config in options.h */ | |
8 #include "../options.h" | |
9 | |
10 /* macros for various libc functions you can change for embedded targets */ | |
11 #define XMALLOC malloc | |
12 #define XREALLOC realloc | |
13 #define XCALLOC calloc | |
14 #define XFREE free | |
15 | |
16 #define XMEMSET memset | |
17 #define XMEMCPY memcpy | |
18 | |
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 /* 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_AES128_CBC | |
51 #define RIJNDAEL | |
52 #endif | |
53 | |
54 #ifdef DROPBEAR_TWOFISH128_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 #define FORTUNA_POOLS 0 | |
85 | |
86 #endif | |
87 |