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 |
3
|
126 |
|
127 "\nBlock Chaining Modes:\n" |
|
128 #if defined(CFB) |
|
129 " CFB\n" |
|
130 #endif |
|
131 #if defined(OFB) |
|
132 " OFB\n" |
|
133 #endif |
|
134 #if defined(ECB) |
|
135 " ECB\n" |
|
136 #endif |
|
137 #if defined(CBC) |
|
138 " CBC\n" |
|
139 #endif |
|
140 #if defined(CTR) |
|
141 " CTR\n" |
|
142 #endif |
|
143 |
|
144 "\nPRNG:\n" |
|
145 #if defined(YARROW) |
|
146 " Yarrow\n" |
|
147 #endif |
|
148 #if defined(SPRNG) |
|
149 " SPRNG\n" |
|
150 #endif |
|
151 #if defined(RC4) |
|
152 " RC4\n" |
|
153 #endif |
|
154 |
|
155 "\nPK Algs:\n" |
|
156 #if defined(MRSA) |
15
|
157 " RSA" |
|
158 #if defined(RSA_TIMING) |
|
159 " + RSA_TIMING " |
|
160 #endif |
|
161 "\n" |
3
|
162 #endif |
|
163 #if defined(MDH) |
|
164 " DH\n" |
|
165 #endif |
|
166 #if defined(MECC) |
|
167 " ECC\n" |
|
168 #endif |
|
169 #if defined(MDSA) |
|
170 " DSA\n" |
|
171 #endif |
|
172 |
|
173 "\nCompiler:\n" |
|
174 #if defined(WIN32) |
|
175 " WIN32 platform detected.\n" |
|
176 #endif |
|
177 #if defined(__CYGWIN__) |
|
178 " CYGWIN Detected.\n" |
|
179 #endif |
|
180 #if defined(__DJGPP__) |
|
181 " DJGPP Detected.\n" |
|
182 #endif |
|
183 #if defined(_MSC_VER) |
|
184 " MSVC compiler detected.\n" |
|
185 #endif |
|
186 #if defined(__GNUC__) |
|
187 " GCC compiler detected.\n" |
|
188 #endif |
|
189 #if defined(INTEL_CC) |
|
190 " Intel C Compiler detected.\n" |
|
191 #endif |
|
192 |
|
193 "\nVarious others: " |
|
194 #if defined(BASE64) |
|
195 " BASE64 " |
|
196 #endif |
|
197 #if defined(MPI) |
|
198 " MPI " |
|
199 #endif |
|
200 #if defined(HMAC) |
|
201 " HMAC " |
|
202 #endif |
|
203 #if defined(OMAC) |
|
204 " OMAC " |
|
205 #endif |
|
206 #if defined(PMAC) |
|
207 " PMAC " |
|
208 #endif |
|
209 #if defined(EAX_MODE) |
|
210 " EAX_MODE " |
|
211 #endif |
|
212 #if defined(OCB_MODE) |
|
213 " OCB_MODE " |
|
214 #endif |
|
215 #if defined(TRY_UNRANDOM_FIRST) |
|
216 " TRY_UNRANDOM_FIRST " |
|
217 #endif |
|
218 #if defined(LTC_TEST) |
|
219 " LTC_TEST " |
|
220 #endif |
|
221 #if defined(PKCS_1) |
|
222 " PKCS#1 " |
|
223 #endif |
|
224 #if defined(PKCS_5) |
|
225 " PKCS#5 " |
|
226 #endif |
15
|
227 #if defined(SMALL_CODE) |
|
228 " SMALL_CODE " |
|
229 #endif |
|
230 #if defined(NO_FILE) |
|
231 " NO_FILE " |
|
232 #endif |
|
233 #if defined(LTC_TEST) |
|
234 " LTC_TEST " |
|
235 #endif |
3
|
236 "\n" |
|
237 "\n\n\n" |
|
238 ; |
|
239 |