3
|
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 "mycrypt.h" |
|
12 |
|
13 const char *crypt_build_settings = |
|
14 "LibTomCrypt " SCRYPT "\n\n" |
|
15 "Endianess: " |
|
16 #if defined(ENDIAN_NEUTRAL) |
|
17 "neutral\n" |
|
18 #elif defined(ENDIAN_LITTLE) |
|
19 "little" |
|
20 #if defined(ENDIAN_32BITWORD) |
|
21 " (32-bit words)\n" |
|
22 #else |
|
23 " (64-bit words)\n" |
|
24 #endif |
|
25 #elif defined(ENDIAN_BIG) |
|
26 "big" |
|
27 #if defined(ENDIAN_32BITWORD) |
|
28 " (32-bit words)\n" |
|
29 #else |
|
30 " (64-bit words)\n" |
|
31 #endif |
|
32 #endif |
|
33 "Clean stack: " |
|
34 #if defined(CLEAN_STACK) |
|
35 "enabled\n" |
|
36 #else |
|
37 "disabled\n" |
|
38 #endif |
|
39 "Ciphers built-in:\n" |
|
40 #if defined(BLOWFISH) |
|
41 " Blowfish\n" |
|
42 #endif |
|
43 #if defined(RC2) |
|
44 " RC2\n" |
|
45 #endif |
|
46 #if defined(RC5) |
|
47 " RC5\n" |
|
48 #endif |
|
49 #if defined(RC6) |
|
50 " RC6\n" |
|
51 #endif |
|
52 #if defined(SAFERP) |
|
53 " Safer+\n" |
|
54 #endif |
|
55 #if defined(SAFER) |
|
56 " Safer\n" |
|
57 #endif |
|
58 #if defined(RIJNDAEL) |
|
59 " Rijndael\n" |
|
60 #endif |
|
61 #if defined(XTEA) |
|
62 " XTEA\n" |
|
63 #endif |
|
64 #if defined(TWOFISH) |
|
65 " Twofish " |
|
66 #if defined(TWOFISH_SMALL) && defined(TWOFISH_TABLES) |
|
67 "(small, tables)\n" |
|
68 #elif defined(TWOFISH_SMALL) |
|
69 "(small)\n" |
|
70 #elif defined(TWOFISH_TABLES) |
|
71 "(tables)\n" |
|
72 #else |
|
73 "\n" |
|
74 #endif |
|
75 #endif |
|
76 #if defined(DES) |
|
77 " DES\n" |
|
78 #endif |
|
79 #if defined(CAST5) |
|
80 " CAST5\n" |
|
81 #endif |
|
82 #if defined(NOEKEON) |
|
83 " Noekeon\n" |
|
84 #endif |
|
85 #if defined(SKIPJACK) |
|
86 " Skipjack\n" |
|
87 #endif |
|
88 |
|
89 "\nHashes built-in:\n" |
|
90 #if defined(SHA512) |
|
91 " SHA-512\n" |
|
92 #endif |
|
93 #if defined(SHA384) |
|
94 " SHA-384\n" |
|
95 #endif |
|
96 #if defined(SHA256) |
|
97 " SHA-256\n" |
|
98 #endif |
|
99 #if defined(SHA224) |
|
100 " SHA-224\n" |
|
101 #endif |
|
102 #if defined(TIGER) |
|
103 " TIGER\n" |
|
104 #endif |
|
105 #if defined(SHA1) |
|
106 " SHA1\n" |
|
107 #endif |
|
108 #if defined(MD5) |
|
109 " MD5\n" |
|
110 #endif |
|
111 #if defined(MD4) |
|
112 " MD4\n" |
|
113 #endif |
|
114 #if defined(MD2) |
|
115 " MD2\n" |
|
116 #endif |
|
117 #if defined(RIPEMD128) |
|
118 " RIPEMD128\n" |
|
119 #endif |
|
120 #if defined(RIPEMD160) |
|
121 " RIPEMD160\n" |
|
122 #endif |
15
|
123 #if defined(WHIRLPOOL) |
|
124 " WHIRLPOOL\n" |
|
125 #endif |
143
|
126 #if defined(CHC_HASH) |
|
127 " CHC_HASH \n" |
|
128 #endif |
3
|
129 |
|
130 "\nBlock Chaining Modes:\n" |
|
131 #if defined(CFB) |
|
132 " CFB\n" |
|
133 #endif |
|
134 #if defined(OFB) |
|
135 " OFB\n" |
|
136 #endif |
|
137 #if defined(ECB) |
|
138 " ECB\n" |
|
139 #endif |
|
140 #if defined(CBC) |
|
141 " CBC\n" |
|
142 #endif |
|
143 #if defined(CTR) |
|
144 " CTR\n" |
|
145 #endif |
|
146 |
143
|
147 "\nMACs:\n" |
|
148 #if defined(HMAC) |
|
149 " HMAC\n" |
|
150 #endif |
|
151 #if defined(OMAC) |
|
152 " OMAC\n" |
|
153 #endif |
|
154 #if defined(PMAC) |
|
155 " PMAC\n" |
|
156 #endif |
|
157 |
|
158 "\nENC + AUTH modes:\n" |
|
159 #if defined(EAX_MODE) |
|
160 " EAX_MODE\n" |
|
161 #endif |
|
162 #if defined(OCB_MODE) |
|
163 " OCB_MODE\n" |
|
164 #endif |
|
165 |
|
166 |
3
|
167 "\nPRNG:\n" |
|
168 #if defined(YARROW) |
|
169 " Yarrow\n" |
|
170 #endif |
|
171 #if defined(SPRNG) |
|
172 " SPRNG\n" |
|
173 #endif |
|
174 #if defined(RC4) |
|
175 " RC4\n" |
|
176 #endif |
143
|
177 #if defined(FORTUNA) |
|
178 " Fortuna\n" |
|
179 #endif |
|
180 #if defined(SOBER128) |
|
181 " SOBER128\n" |
|
182 #endif |
3
|
183 |
|
184 "\nPK Algs:\n" |
|
185 #if defined(MRSA) |
15
|
186 " RSA" |
|
187 #if defined(RSA_TIMING) |
|
188 " + RSA_TIMING " |
|
189 #endif |
|
190 "\n" |
3
|
191 #endif |
|
192 #if defined(MDH) |
|
193 " DH\n" |
|
194 #endif |
|
195 #if defined(MECC) |
|
196 " ECC\n" |
|
197 #endif |
|
198 #if defined(MDSA) |
|
199 " DSA\n" |
|
200 #endif |
|
201 |
|
202 "\nCompiler:\n" |
|
203 #if defined(WIN32) |
|
204 " WIN32 platform detected.\n" |
|
205 #endif |
|
206 #if defined(__CYGWIN__) |
|
207 " CYGWIN Detected.\n" |
|
208 #endif |
|
209 #if defined(__DJGPP__) |
|
210 " DJGPP Detected.\n" |
|
211 #endif |
|
212 #if defined(_MSC_VER) |
|
213 " MSVC compiler detected.\n" |
|
214 #endif |
|
215 #if defined(__GNUC__) |
|
216 " GCC compiler detected.\n" |
|
217 #endif |
|
218 #if defined(INTEL_CC) |
|
219 " Intel C Compiler detected.\n" |
|
220 #endif |
|
221 |
|
222 "\nVarious others: " |
|
223 #if defined(BASE64) |
|
224 " BASE64 " |
|
225 #endif |
|
226 #if defined(MPI) |
|
227 " MPI " |
|
228 #endif |
|
229 #if defined(TRY_UNRANDOM_FIRST) |
|
230 " TRY_UNRANDOM_FIRST " |
|
231 #endif |
|
232 #if defined(LTC_TEST) |
|
233 " LTC_TEST " |
|
234 #endif |
|
235 #if defined(PKCS_1) |
|
236 " PKCS#1 " |
|
237 #endif |
|
238 #if defined(PKCS_5) |
|
239 " PKCS#5 " |
|
240 #endif |
15
|
241 #if defined(SMALL_CODE) |
|
242 " SMALL_CODE " |
|
243 #endif |
|
244 #if defined(NO_FILE) |
|
245 " NO_FILE " |
|
246 #endif |
143
|
247 #if defined(LTMSSE) |
|
248 " LTMSSE " |
15
|
249 #endif |
3
|
250 "\n" |
|
251 "\n\n\n" |
|
252 ; |
|
253 |