comparison libtomcrypt/src/misc/crypt/crypt.c @ 285:1b9e69c058d2

propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head 20dccfc09627970a312d77fb41dc2970b62689c3) to branch 'au.asn.ucc.matt.dropbear' (head fdf4a7a3b97ae5046139915de7e40399cceb2c01)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 08 Mar 2006 13:23:58 +0000
parents
children 0cbe8f6dbf9e
comparison
equal deleted inserted replaced
281:997e6f7dc01e 285:1b9e69c058d2
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, [email protected], http://libtomcrypt.org
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, [email protected])\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
115 "\nHashes built-in:\n"
116 #if defined(SHA512)
117 " SHA-512\n"
118 #endif
119 #if defined(SHA384)
120 " SHA-384\n"
121 #endif
122 #if defined(SHA256)
123 " SHA-256\n"
124 #endif
125 #if defined(SHA224)
126 " SHA-224\n"
127 #endif
128 #if defined(TIGER)
129 " TIGER\n"
130 #endif
131 #if defined(SHA1)
132 " SHA1\n"
133 #endif
134 #if defined(MD5)
135 " MD5\n"
136 #endif
137 #if defined(MD4)
138 " MD4\n"
139 #endif
140 #if defined(MD2)
141 " MD2\n"
142 #endif
143 #if defined(RIPEMD128)
144 " RIPEMD128\n"
145 #endif
146 #if defined(RIPEMD160)
147 " RIPEMD160\n"
148 #endif
149 #if defined(WHIRLPOOL)
150 " WHIRLPOOL\n"
151 #endif
152 #if defined(CHC_HASH)
153 " CHC_HASH \n"
154 #endif
155
156 "\nBlock Chaining Modes:\n"
157 #if defined(CFB)
158 " CFB\n"
159 #endif
160 #if defined(OFB)
161 " OFB\n"
162 #endif
163 #if defined(ECB)
164 " ECB\n"
165 #endif
166 #if defined(CBC)
167 " CBC\n"
168 #endif
169 #if defined(CTR)
170 " CTR\n"
171 #endif
172
173 "\nMACs:\n"
174 #if defined(HMAC)
175 " HMAC\n"
176 #endif
177 #if defined(OMAC)
178 " OMAC\n"
179 #endif
180 #if defined(PMAC)
181 " PMAC\n"
182 #endif
183 #if defined(PELICAN)
184 " PELICAN\n"
185 #endif
186
187 "\nENC + AUTH modes:\n"
188 #if defined(EAX_MODE)
189 " EAX_MODE\n"
190 #endif
191 #if defined(OCB_MODE)
192 " OCB_MODE\n"
193 #endif
194 #if defined(CCM_MODE)
195 " CCM_MODE\n"
196 #endif
197 #if defined(GCM_MODE)
198 " GCM_MODE "
199 #endif
200 #if defined(GCM_TABLES)
201 " (GCM_TABLES) "
202 #endif
203 "\n"
204
205
206 "\nPRNG:\n"
207 #if defined(YARROW)
208 " Yarrow\n"
209 #endif
210 #if defined(SPRNG)
211 " SPRNG\n"
212 #endif
213 #if defined(RC4)
214 " RC4\n"
215 #endif
216 #if defined(FORTUNA)
217 " Fortuna\n"
218 #endif
219 #if defined(SOBER128)
220 " SOBER128\n"
221 #endif
222
223 "\nPK Algs:\n"
224 #if defined(MRSA)
225 " RSA \n"
226 #endif
227 #if defined(MDH)
228 " DH\n"
229 #endif
230 #if defined(MECC)
231 " ECC\n"
232 #endif
233 #if defined(MDSA)
234 " DSA\n"
235 #endif
236
237 "\nCompiler:\n"
238 #if defined(WIN32)
239 " WIN32 platform detected.\n"
240 #endif
241 #if defined(LBL_CYGWIN__)
242 " CYGWIN Detected.\n"
243 #endif
244 #if defined(LBL_DJGPP__)
245 " DJGPP Detected.\n"
246 #endif
247 #if defined(_MSC_VER)
248 " MSVC compiler detected.\n"
249 #endif
250 #if defined(__GNUC__)
251 " GCC compiler detected.\n"
252 #endif
253 #if defined(INTEL_CC)
254 " Intel C Compiler detected.\n"
255 #endif
256 #if defined(LBL_x86_64__)
257 " x86-64 detected.\n"
258 #endif
259
260 "\nVarious others: "
261 #if defined(BASE64)
262 " BASE64 "
263 #endif
264 #if defined(MPI)
265 " MPI "
266 #endif
267 #if defined(TRY_UNRANDOM_FIRST)
268 " TRY_UNRANDOM_FIRST "
269 #endif
270 #if defined(LTC_TEST)
271 " LTC_TEST "
272 #endif
273 #if defined(PKCS_1)
274 " PKCS#1 "
275 #endif
276 #if defined(PKCS_5)
277 " PKCS#5 "
278 #endif
279 #if defined(LTC_SMALL_CODE)
280 " LTC_SMALL_CODE "
281 #endif
282 #if defined(LTC_NO_FILE)
283 " LTC_NO_FILE "
284 #endif
285 #if defined(LTC_DER)
286 " LTC_DER "
287 #endif
288 #if defined(LTC_FAST)
289 " LTC_FAST "
290 #endif
291 #if defined(LTC_NO_FAST)
292 " LTC_NO_FAST "
293 #endif
294 #if defined(LTC_NO_BSWAP)
295 " LTC_NO_BSWAP "
296 #endif
297 #if defined(LTC_NO_ASM)
298 " LTC_NO_ASM "
299 #endif
300 #if defined(LTC_NO_TEST)
301 " LTC_NO_TEST "
302 #endif
303 #if defined(LTC_NO_TABLES)
304 " LTC_NO_TABLES "
305 #endif
306 #if defined(LTC_PTHREAD)
307 " LTC_PTHREAD "
308 #endif
309 "\n"
310 "\n\n\n"
311 ;
312 */
313
314
315 /* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt.c,v $ */
316 /* $Revision: 1.11 $ */
317 /* $Date: 2005/06/19 18:00:28 $ */