comparison src/misc/crypt/crypt.c @ 380:d5faf4814ddb libtomcrypt-orig libtomcrypt-1.16

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