• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
2  *
3  * LibTomCrypt is a library that provides various cryptographic
4  * algorithms in a highly modular and flexible manner.
5  *
6  * The library is free for all purposes without any express
7  * guarantee it works.
8  *
9  * Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.com
10  */
11 #include "tomcrypt.h"
12 
13 /**
14   @file crypt.c
15   Build strings, Tom St Denis
16 */
17 
18 /*
19 const char *crypt_build_settings =
20    "LibTomCrypt " SCRYPT " (Tom St Denis, tomstdenis@gmail.com)\n"
21    "LibTomCrypt is public domain software.\n"
22    "Built on " __DATE__ " at " __TIME__ "\n\n\n"
23    "Endianess: "
24 #if defined(ENDIAN_NEUTRAL)
25    "neutral\n"
26 #elif defined(ENDIAN_LITTLE)
27    "little"
28    #if defined(ENDIAN_32BITWORD)
29    " (32-bit words)\n"
30    #else
31    " (64-bit words)\n"
32    #endif
33 #elif defined(ENDIAN_BIG)
34    "big"
35    #if defined(ENDIAN_32BITWORD)
36    " (32-bit words)\n"
37    #else
38    " (64-bit words)\n"
39    #endif
40 #endif
41    "Clean stack: "
42 #if defined(LTC_CLEAN_STACK)
43    "enabled\n"
44 #else
45    "disabled\n"
46 #endif
47    "Ciphers built-in:\n"
48 #if defined(BLOWFISH)
49    "   Blowfish\n"
50 #endif
51 #if defined(RC2)
52    "   RC2\n"
53 #endif
54 #if defined(RC5)
55    "   RC5\n"
56 #endif
57 #if defined(RC6)
58    "   RC6\n"
59 #endif
60 #if defined(SAFERP)
61    "   Safer+\n"
62 #endif
63 #if defined(SAFER)
64    "   Safer\n"
65 #endif
66 #if defined(RIJNDAEL)
67    "   Rijndael\n"
68 #endif
69 #if defined(XTEA)
70    "   XTEA\n"
71 #endif
72 #if defined(TWOFISH)
73    "   Twofish "
74    #if defined(TWOFISH_SMALL) && defined(TWOFISH_TABLES) && defined(TWOFISH_ALL_TABLES)
75        "(small, tables, all_tables)\n"
76    #elif defined(TWOFISH_SMALL) && defined(TWOFISH_TABLES)
77        "(small, tables)\n"
78    #elif defined(TWOFISH_SMALL) && defined(TWOFISH_ALL_TABLES)
79        "(small, all_tables)\n"
80    #elif defined(TWOFISH_TABLES) && defined(TWOFISH_ALL_TABLES)
81        "(tables, all_tables)\n"
82    #elif defined(TWOFISH_SMALL)
83        "(small)\n"
84    #elif defined(TWOFISH_TABLES)
85        "(tables)\n"
86    #elif defined(TWOFISH_ALL_TABLES)
87        "(all_tables)\n"
88    #else
89        "\n"
90    #endif
91 #endif
92 #if defined(DES)
93    "   DES\n"
94 #endif
95 #if defined(CAST5)
96    "   CAST5\n"
97 #endif
98 #if defined(NOEKEON)
99    "   Noekeon\n"
100 #endif
101 #if defined(SKIPJACK)
102    "   Skipjack\n"
103 #endif
104 #if defined(KHAZAD)
105    "   Khazad\n"
106 #endif
107 #if defined(ANUBIS)
108    "   Anubis "
109 #endif
110 #if defined(ANUBIS_TWEAK)
111    " (tweaked)"
112 #endif
113    "\n"
114 #if defined(KSEED)
115    "   KSEED\n"
116 #endif
117 #if defined(LTC_KASUMI)
118    "   KASUMI\n"
119 #endif
120 
121     "\nHashes built-in:\n"
122 #if defined(SHA512)
123    "   SHA-512\n"
124 #endif
125 #if defined(SHA384)
126    "   SHA-384\n"
127 #endif
128 #if defined(SHA256)
129    "   SHA-256\n"
130 #endif
131 #if defined(SHA224)
132    "   SHA-224\n"
133 #endif
134 #if defined(TIGER)
135    "   TIGER\n"
136 #endif
137 #if defined(SHA1)
138    "   SHA1\n"
139 #endif
140 #if defined(MD5)
141    "   MD5\n"
142 #endif
143 #if defined(MD4)
144    "   MD4\n"
145 #endif
146 #if defined(MD2)
147    "   MD2\n"
148 #endif
149 #if defined(RIPEMD128)
150    "   RIPEMD128\n"
151 #endif
152 #if defined(RIPEMD160)
153    "   RIPEMD160\n"
154 #endif
155 #if defined(WHIRLPOOL)
156    "   WHIRLPOOL\n"
157 #endif
158 #if defined(CHC_HASH)
159    "   CHC_HASH \n"
160 #endif
161 
162     "\nBlock Chaining Modes:\n"
163 #if defined(LTC_CFB_MODE)
164     "   CFB\n"
165 #endif
166 #if defined(LTC_OFB_MODE)
167     "   OFB\n"
168 #endif
169 #if defined(LTC_ECB_MODE)
170     "   ECB\n"
171 #endif
172 #if defined(LTC_CBC_MODE)
173     "   CBC\n"
174 #endif
175 #if defined(LTC_CTR_MODE)
176     "   CTR "
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
192 
193     "\nMACs:\n"
194 #if defined(LTC_HMAC)
195     "   HMAC\n"
196 #endif
197 #if defined(LTC_OMAC)
198     "   OMAC\n"
199 #endif
200 #if defined(LTC_PMAC)
201     "   PMAC\n"
202 #endif
203 #if defined(PELICAN)
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"
211 #endif
212 
213     "\nENC + AUTH modes:\n"
214 #if defined(EAX_MODE)
215     "   EAX_MODE\n"
216 #endif
217 #if defined(OCB_MODE)
218     "   OCB_MODE\n"
219 #endif
220 #if defined(CCM_MODE)
221     "   CCM_MODE\n"
222 #endif
223 #if defined(GCM_MODE)
224     "   GCM_MODE "
225 #endif
226 #if defined(GCM_TABLES)
227     " (GCM_TABLES) "
228 #endif
229    "\n"
230 
231     "\nPRNG:\n"
232 #if defined(YARROW)
233     "   Yarrow\n"
234 #endif
235 #if defined(SPRNG)
236     "   SPRNG\n"
237 #endif
238 #if defined(RC4)
239     "   RC4\n"
240 #endif
241 #if defined(FORTUNA)
242     "   Fortuna\n"
243 #endif
244 #if defined(SOBER128)
245     "   SOBER128\n"
246 #endif
247 
248     "\nPK Algs:\n"
249 #if defined(MRSA)
250     "   RSA \n"
251 #endif
252 #if defined(MECC)
253     "   ECC\n"
254 #endif
255 #if defined(MDSA)
256     "   DSA\n"
257 #endif
258 #if defined(MKAT)
259     "   Katja\n"
260 #endif
261 
262     "\nCompiler:\n"
263 #if defined(WIN32)
264     "   WIN32 platform detected.\n"
265 #endif
266 #if defined(__CYGWIN__)
267     "   CYGWIN Detected.\n"
268 #endif
269 #if defined(__DJGPP__)
270     "   DJGPP Detected.\n"
271 #endif
272 #if defined(_MSC_VER)
273     "   MSVC compiler detected.\n"
274 #endif
275 #if defined(__GNUC__)
276     "   GCC compiler detected.\n"
277 #endif
278 #if defined(INTEL_CC)
279     "   Intel C Compiler detected.\n"
280 #endif
281 #if defined(__x86_64__)
282     "   x86-64 detected.\n"
283 #endif
284 #if defined(LTC_PPC32)
285     "   LTC_PPC32 defined \n"
286 #endif
287 
288     "\nVarious others: "
289 #if defined(BASE64)
290     " BASE64 "
291 #endif
292 #if defined(MPI)
293     " MPI "
294 #endif
295 #if defined(TRY_UNRANDOM_FIRST)
296     " TRY_UNRANDOM_FIRST "
297 #endif
298 #if defined(LTC_TEST)
299     " LTC_TEST "
300 #endif
301 #if defined(PKCS_1)
302     " PKCS#1 "
303 #endif
304 #if defined(PKCS_5)
305     " PKCS#5 "
306 #endif
307 #if defined(LTC_SMALL_CODE)
308     " LTC_SMALL_CODE "
309 #endif
310 #if defined(LTC_NO_FILE)
311     " LTC_NO_FILE "
312 #endif
313 #if defined(LTC_DER)
314     " LTC_DER "
315 #endif
316 #if defined(LTC_FAST)
317     " LTC_FAST "
318 #endif
319 #if defined(LTC_NO_FAST)
320     " LTC_NO_FAST "
321 #endif
322 #if defined(LTC_NO_BSWAP)
323     " LTC_NO_BSWAP "
324 #endif
325 #if defined(LTC_NO_ASM)
326     " LTC_NO_ASM "
327 #endif
328 #if defined(LTC_NO_TEST)
329     " LTC_NO_TEST "
330 #endif
331 #if defined(LTC_NO_TABLES)
332     " LTC_NO_TABLES "
333 #endif
334 #if defined(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 "
357 #endif
358     "\n"
359     "\n\n\n"
360     ;
361 	*/
362 
363 
364 /* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt.c,v $ */
365 /* $Revision: 1.27 $ */
366 /* $Date: 2006/12/03 03:50:45 $ */
367