Mercurial > dropbear
comparison libtomcrypt/src/headers/tomcrypt_custom.h @ 1435:f849a5ca2efc
update to libtomcrypt 1.17 (with Dropbear changes)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 17:50:50 +0800 |
parents | 3017bc7d6238 |
children | 871b18fd7065 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1434:27b9ddb06b09 | 1435:f849a5ca2efc |
---|---|
67 #ifdef DROPBEAR_SMALL_CODE | 67 #ifdef DROPBEAR_SMALL_CODE |
68 #define LTC_SMALL_CODE | 68 #define LTC_SMALL_CODE |
69 #endif | 69 #endif |
70 /* These spit out warnings etc */ | 70 /* These spit out warnings etc */ |
71 #define LTC_NO_ROLC | 71 #define LTC_NO_ROLC |
72 #ifndef XQSORT | |
73 #ifdef qsort | |
74 #define LTC_NO_PROTOTYPES | |
75 #endif | |
76 #define XQSORT qsort | |
77 #endif | |
78 | |
72 | 79 |
73 /* Enable self-test test vector checking */ | 80 /* Enable self-test test vector checking */ |
74 /* Not for dropbear */ | 81 /* Not for dropbear */ |
75 /*#define LTC_TEST*/ | 82 /*#define LTC_TEST*/ |
76 | 83 |
89 /* disable BSWAP on x86 */ | 96 /* disable BSWAP on x86 */ |
90 /* #define LTC_NO_BSWAP */ | 97 /* #define LTC_NO_BSWAP */ |
91 | 98 |
92 | 99 |
93 #ifdef DROPBEAR_BLOWFISH | 100 #ifdef DROPBEAR_BLOWFISH |
94 #define BLOWFISH | 101 #define LTC_BLOWFISH |
95 #endif | 102 #endif |
96 | 103 |
97 #ifdef DROPBEAR_AES | 104 #ifdef DROPBEAR_AES |
98 #define RIJNDAEL | 105 #define LTC_RIJNDAEL |
99 #endif | 106 #endif |
100 | 107 |
101 #ifdef DROPBEAR_TWOFISH | 108 #ifdef DROPBEAR_TWOFISH |
102 #define TWOFISH | 109 #define LTC_TWOFISH |
103 | 110 |
111 /* _TABLES tells it to use tables during setup, _SMALL means to use the smaller scheduled key format | |
112 * (saves 4KB of ram), _ALL_TABLES enables all tables during setup */ | |
104 /* enabling just TWOFISH_SMALL will make the binary ~1kB smaller, turning on | 113 /* enabling just TWOFISH_SMALL will make the binary ~1kB smaller, turning on |
105 * TWOFISH_TABLES will make it a few kB bigger, but perhaps reduces runtime | 114 * TWOFISH_TABLES will make it a few kB bigger, but perhaps reduces runtime |
106 * memory usage? */ | 115 * memory usage? */ |
107 #define TWOFISH_SMALL | 116 #define LTC_TWOFISH_SMALL |
108 /*#define TWOFISH_TABLES*/ | 117 /*#define LTC_TWOFISH_TABLES*/ |
109 #endif | 118 #endif |
110 | 119 |
111 #ifdef DROPBEAR_3DES | 120 #ifdef DROPBEAR_3DES |
112 #define DES | 121 #define LTC_DES |
113 #endif | 122 #endif |
114 | 123 |
115 #define LTC_CBC_MODE | 124 #define LTC_CBC_MODE |
116 | 125 |
117 #ifdef DROPBEAR_ENABLE_CTR_MODE | 126 #ifdef DROPBEAR_ENABLE_CTR_MODE |
118 #define LTC_CTR_MODE | 127 #define LTC_CTR_MODE |
119 #endif | 128 #endif |
120 | 129 |
121 #define SHA1 | 130 #define LTC_SHA1 |
122 | 131 |
123 #ifdef DROPBEAR_MD5 | 132 #ifdef DROPBEAR_MD5 |
124 #define MD5 | 133 #define LTC_MD5 |
125 #endif | 134 #endif |
126 | 135 |
127 #ifdef DROPBEAR_SHA256 | 136 #ifdef DROPBEAR_SHA256 |
128 #define SHA256 | 137 #define LTC_SHA256 |
129 #endif | 138 #endif |
130 #ifdef DROPBEAR_SHA384 | 139 #ifdef DROPBEAR_SHA384 |
131 #define SHA384 | 140 #define LTC_SHA384 |
132 #endif | 141 #endif |
133 #ifdef DROPBEAR_SHA512 | 142 #ifdef DROPBEAR_SHA512 |
134 #define SHA512 | 143 #define LTC_SHA512 |
135 #endif | 144 #endif |
136 | 145 |
137 #define LTC_HMAC | 146 #define LTC_HMAC |
138 | 147 |
139 #ifdef DROPBEAR_ECC | 148 #ifdef DROPBEAR_ECC |
140 #define MECC | 149 #define LTC_MECC |
141 #define LTC_ECC_SHAMIR | 150 #define LTC_ECC_SHAMIR |
142 #define LTC_ECC_TIMING_RESISTANT | 151 #define LTC_ECC_TIMING_RESISTANT |
143 #define MPI | 152 #define MPI |
144 #define LTM_DESC | 153 #define LTM_DESC |
145 #ifdef DROPBEAR_ECC_256 | 154 #ifdef DROPBEAR_ECC_256 |
152 #define ECC521 | 161 #define ECC521 |
153 #endif | 162 #endif |
154 #endif | 163 #endif |
155 | 164 |
156 /* Various tidbits of modern neatoness */ | 165 /* Various tidbits of modern neatoness */ |
157 #define BASE64 | 166 #define LTC_BASE64 |
158 | 167 |
159 /* default no pthread functions */ | 168 /* default no pthread functions */ |
160 #define LTC_MUTEX_GLOBAL(x) | 169 #define LTC_MUTEX_GLOBAL(x) |
161 #define LTC_MUTEX_PROTO(x) | 170 #define LTC_MUTEX_PROTO(x) |
162 #define LTC_MUTEX_TYPE(x) | 171 #define LTC_MUTEX_TYPE(x) |
165 #define LTC_MUTEX_UNLOCK(x) | 174 #define LTC_MUTEX_UNLOCK(x) |
166 #define FORTUNA_POOLS 0 | 175 #define FORTUNA_POOLS 0 |
167 | 176 |
168 /* Debuggers */ | 177 /* Debuggers */ |
169 | 178 |
170 /* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and RC4 work (see the code) */ | 179 /* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and LTC_RC4 work (see the code) */ |
171 /* #define LTC_VALGRIND */ | 180 /* #define LTC_VALGRIND */ |
172 | 181 |
173 #endif | 182 #endif |
174 | 183 |
175 | 184 |
176 | 185 |
177 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */ | 186 /* $Source$ */ |
178 /* $Revision: 1.66 $ */ | 187 /* $Revision$ */ |
179 /* $Date: 2006/12/04 02:50:11 $ */ | 188 /* $Date$ */ |