comparison crypt.c @ 0:d7da3b1e1540 libtomcrypt

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