comparison crypt.c @ 3:7faae8f46238 libtomcrypt-orig

Branch renaming
author Matt Johnston <matt@ucc.asn.au>
date Mon, 31 May 2004 18:25:41 +0000
parents
children 6362d3854bb4
comparison
equal deleted inserted replaced
-1:000000000000 3:7faae8f46238
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
123
124 "\nBlock Chaining Modes:\n"
125 #if defined(CFB)
126 " CFB\n"
127 #endif
128 #if defined(OFB)
129 " OFB\n"
130 #endif
131 #if defined(ECB)
132 " ECB\n"
133 #endif
134 #if defined(CBC)
135 " CBC\n"
136 #endif
137 #if defined(CTR)
138 " CTR\n"
139 #endif
140
141 "\nPRNG:\n"
142 #if defined(YARROW)
143 " Yarrow\n"
144 #endif
145 #if defined(SPRNG)
146 " SPRNG\n"
147 #endif
148 #if defined(RC4)
149 " RC4\n"
150 #endif
151
152 "\nPK Algs:\n"
153 #if defined(MRSA)
154 " RSA\n"
155 #endif
156 #if defined(MDH)
157 " DH\n"
158 #endif
159 #if defined(MECC)
160 " ECC\n"
161 #endif
162 #if defined(MDSA)
163 " DSA\n"
164 #endif
165 #if defined(KR)
166 " KR\n"
167 #endif
168
169 "\nCompiler:\n"
170 #if defined(WIN32)
171 " WIN32 platform detected.\n"
172 #endif
173 #if defined(__CYGWIN__)
174 " CYGWIN Detected.\n"
175 #endif
176 #if defined(__DJGPP__)
177 " DJGPP Detected.\n"
178 #endif
179 #if defined(_MSC_VER)
180 " MSVC compiler detected.\n"
181 #endif
182 #if defined(__GNUC__)
183 " GCC compiler detected.\n"
184 #endif
185 #if defined(INTEL_CC)
186 " Intel C Compiler detected.\n"
187 #endif
188
189 "\nVarious others: "
190 #if defined(GF)
191 " GF "
192 #endif
193 #if defined(BASE64)
194 " BASE64 "
195 #endif
196 #if defined(MPI)
197 " MPI "
198 #endif
199 #if defined(HMAC)
200 " HMAC "
201 #endif
202 #if defined(OMAC)
203 " OMAC "
204 #endif
205 #if defined(PMAC)
206 " PMAC "
207 #endif
208 #if defined(EAX_MODE)
209 " EAX_MODE "
210 #endif
211 #if defined(OCB_MODE)
212 " OCB_MODE "
213 #endif
214 #if defined(TRY_UNRANDOM_FIRST)
215 " TRY_UNRANDOM_FIRST "
216 #endif
217 #if defined(LTC_TEST)
218 " LTC_TEST "
219 #endif
220 #if defined(PKCS_1)
221 " PKCS#1 "
222 #endif
223 #if defined(PKCS_5)
224 " PKCS#5 "
225 #endif
226 "\n"
227 "\n\n\n"
228 ;
229