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