comparison libtomcrypt/src/misc/crypt/crypt.c @ 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 f849a5ca2efc
comparison
equal deleted inserted replaced
379:b66a00272a90 382:0cbe8f6dbf9e
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 * 8 *
9 * Tom St Denis, [email protected], http://libtomcrypt.org 9 * Tom St Denis, [email protected], http://libtomcrypt.com
10 */ 10 */
11 #include "tomcrypt.h" 11 #include "tomcrypt.h"
12 12
13 /** 13 /**
14 @file crypt.c 14 @file crypt.c
109 #endif 109 #endif
110 #if defined(ANUBIS_TWEAK) 110 #if defined(ANUBIS_TWEAK)
111 " (tweaked)" 111 " (tweaked)"
112 #endif 112 #endif
113 "\n" 113 "\n"
114 #if defined(KSEED)
115 " KSEED\n"
116 #endif
117 #if defined(LTC_KASUMI)
118 " KASUMI\n"
119 #endif
114 120
115 "\nHashes built-in:\n" 121 "\nHashes built-in:\n"
116 #if defined(SHA512) 122 #if defined(SHA512)
117 " SHA-512\n" 123 " SHA-512\n"
118 #endif 124 #endif
152 #if defined(CHC_HASH) 158 #if defined(CHC_HASH)
153 " CHC_HASH \n" 159 " CHC_HASH \n"
154 #endif 160 #endif
155 161
156 "\nBlock Chaining Modes:\n" 162 "\nBlock Chaining Modes:\n"
157 #if defined(CFB) 163 #if defined(LTC_CFB_MODE)
158 " CFB\n" 164 " CFB\n"
159 #endif 165 #endif
160 #if defined(OFB) 166 #if defined(LTC_OFB_MODE)
161 " OFB\n" 167 " OFB\n"
162 #endif 168 #endif
163 #if defined(ECB) 169 #if defined(LTC_ECB_MODE)
164 " ECB\n" 170 " ECB\n"
165 #endif 171 #endif
166 #if defined(CBC) 172 #if defined(LTC_CBC_MODE)
167 " CBC\n" 173 " CBC\n"
168 #endif 174 #endif
169 #if defined(CTR) 175 #if defined(LTC_CTR_MODE)
170 " CTR\n" 176 " CTR "
171 #endif 177 #endif
178 #if defined(LTC_CTR_OLD)
179 " (CTR_OLD) "
180 #endif
181 "\n"
182 #if defined(LRW_MODE)
183 " LRW_MODE"
184 #if defined(LRW_TABLES)
185 " (LRW_TABLES) "
186 #endif
187 "\n"
188 #endif
189 #if defined(LTC_F8_MODE)
190 " F8 MODE\n"
191 #endif
172 192
173 "\nMACs:\n" 193 "\nMACs:\n"
174 #if defined(HMAC) 194 #if defined(LTC_HMAC)
175 " HMAC\n" 195 " HMAC\n"
176 #endif 196 #endif
177 #if defined(OMAC) 197 #if defined(LTC_OMAC)
178 " OMAC\n" 198 " OMAC\n"
179 #endif 199 #endif
180 #if defined(PMAC) 200 #if defined(LTC_PMAC)
181 " PMAC\n" 201 " PMAC\n"
182 #endif 202 #endif
183 #if defined(PELICAN) 203 #if defined(PELICAN)
184 " PELICAN\n" 204 " PELICAN\n"
205 #endif
206 #if defined(LTC_XCBC)
207 " XCBC-MAC\n"
208 #endif
209 #if defined(LTC_F9_MODE)
210 " F9-MAC\n"
185 #endif 211 #endif
186 212
187 "\nENC + AUTH modes:\n" 213 "\nENC + AUTH modes:\n"
188 #if defined(EAX_MODE) 214 #if defined(EAX_MODE)
189 " EAX_MODE\n" 215 " EAX_MODE\n"
200 #if defined(GCM_TABLES) 226 #if defined(GCM_TABLES)
201 " (GCM_TABLES) " 227 " (GCM_TABLES) "
202 #endif 228 #endif
203 "\n" 229 "\n"
204 230
205
206 "\nPRNG:\n" 231 "\nPRNG:\n"
207 #if defined(YARROW) 232 #if defined(YARROW)
208 " Yarrow\n" 233 " Yarrow\n"
209 #endif 234 #endif
210 #if defined(SPRNG) 235 #if defined(SPRNG)
222 247
223 "\nPK Algs:\n" 248 "\nPK Algs:\n"
224 #if defined(MRSA) 249 #if defined(MRSA)
225 " RSA \n" 250 " RSA \n"
226 #endif 251 #endif
227 #if defined(MDH)
228 " DH\n"
229 #endif
230 #if defined(MECC) 252 #if defined(MECC)
231 " ECC\n" 253 " ECC\n"
232 #endif 254 #endif
233 #if defined(MDSA) 255 #if defined(MDSA)
234 " DSA\n" 256 " DSA\n"
235 #endif 257 #endif
258 #if defined(MKAT)
259 " Katja\n"
260 #endif
236 261
237 "\nCompiler:\n" 262 "\nCompiler:\n"
238 #if defined(WIN32) 263 #if defined(WIN32)
239 " WIN32 platform detected.\n" 264 " WIN32 platform detected.\n"
240 #endif 265 #endif
241 #if defined(LBL_CYGWIN__) 266 #if defined(__CYGWIN__)
242 " CYGWIN Detected.\n" 267 " CYGWIN Detected.\n"
243 #endif 268 #endif
244 #if defined(LBL_DJGPP__) 269 #if defined(__DJGPP__)
245 " DJGPP Detected.\n" 270 " DJGPP Detected.\n"
246 #endif 271 #endif
247 #if defined(_MSC_VER) 272 #if defined(_MSC_VER)
248 " MSVC compiler detected.\n" 273 " MSVC compiler detected.\n"
249 #endif 274 #endif
251 " GCC compiler detected.\n" 276 " GCC compiler detected.\n"
252 #endif 277 #endif
253 #if defined(INTEL_CC) 278 #if defined(INTEL_CC)
254 " Intel C Compiler detected.\n" 279 " Intel C Compiler detected.\n"
255 #endif 280 #endif
256 #if defined(LBL_x86_64__) 281 #if defined(__x86_64__)
257 " x86-64 detected.\n" 282 " x86-64 detected.\n"
258 #endif 283 #endif
284 #if defined(LTC_PPC32)
285 " LTC_PPC32 defined \n"
286 #endif
259 287
260 "\nVarious others: " 288 "\nVarious others: "
261 #if defined(BASE64) 289 #if defined(BASE64)
262 " BASE64 " 290 " BASE64 "
263 #endif 291 #endif
303 #if defined(LTC_NO_TABLES) 331 #if defined(LTC_NO_TABLES)
304 " LTC_NO_TABLES " 332 " LTC_NO_TABLES "
305 #endif 333 #endif
306 #if defined(LTC_PTHREAD) 334 #if defined(LTC_PTHREAD)
307 " LTC_PTHREAD " 335 " LTC_PTHREAD "
336 #endif
337 #if defined(LTM_DESC)
338 " LTM_DESC "
339 #endif
340 #if defined(TFM_DESC)
341 " TFM_DESC "
342 #endif
343 #if defined(MECC_ACCEL)
344 " MECC_ACCEL "
345 #endif
346 #if defined(GMP_DESC)
347 " GMP_DESC "
348 #endif
349 #if defined(LTC_EASY)
350 " (easy) "
351 #endif
352 #if defined(MECC_FP)
353 " MECC_FP "
354 #endif
355 #if defined(LTC_ECC_SHAMIR)
356 " LTC_ECC_SHAMIR "
308 #endif 357 #endif
309 "\n" 358 "\n"
310 "\n\n\n" 359 "\n\n\n"
311 ; 360 ;
312 */ 361 */
313 362
314 363
315 /* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt.c,v $ */ 364 /* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt.c,v $ */
316 /* $Revision: 1.11 $ */ 365 /* $Revision: 1.27 $ */
317 /* $Date: 2005/06/19 18:00:28 $ */ 366 /* $Date: 2006/12/03 03:50:45 $ */