blob: c8ef4d2827362af0a91953c0e2d06c0182e68c78 [file] [log] [blame]
Heiko Schocher633e03a2007-06-22 19:11:54 +02001/*
2 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
3 * based on:
4 * FIPS-180-1 compliant SHA-1 implementation
5 *
6 * Copyright (C) 2003-2006 Christophe Devine
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License, version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301 USA
21 */
22/*
23 * The SHA-1 standard was published by NIST in 1993.
24 *
25 * http://www.itl.nist.gov/fipspubs/fip180-1.htm
26 */
27
28#ifndef _CRT_SECURE_NO_DEPRECATE
29#define _CRT_SECURE_NO_DEPRECATE 1
30#endif
31
Bartlomiej Sieka222e2ca2008-04-25 13:54:02 +020032#ifndef USE_HOSTCC
33#include <common.h>
34#endif /* USE_HOSTCC */
35#include <watchdog.h>
Heiko Schocher633e03a2007-06-22 19:11:54 +020036#include <linux/string.h>
37#include "sha1.h"
38
39/*
40 * 32-bit integer manipulation macros (big endian)
41 */
42#ifndef GET_UINT32_BE
Wolfgang Denka0453aa2007-07-10 00:01:28 +020043#define GET_UINT32_BE(n,b,i) { \
44 (n) = ( (unsigned long) (b)[(i) ] << 24 ) \
45 | ( (unsigned long) (b)[(i) + 1] << 16 ) \
46 | ( (unsigned long) (b)[(i) + 2] << 8 ) \
47 | ( (unsigned long) (b)[(i) + 3] ); \
Heiko Schocher633e03a2007-06-22 19:11:54 +020048}
49#endif
50#ifndef PUT_UINT32_BE
Wolfgang Denka0453aa2007-07-10 00:01:28 +020051#define PUT_UINT32_BE(n,b,i) { \
52 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \
53 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \
54 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \
55 (b)[(i) + 3] = (unsigned char) ( (n) ); \
Heiko Schocher633e03a2007-06-22 19:11:54 +020056}
57#endif
58
59/*
60 * SHA-1 context setup
61 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +020062void sha1_starts (sha1_context * ctx)
Heiko Schocher633e03a2007-06-22 19:11:54 +020063{
Wolfgang Denka0453aa2007-07-10 00:01:28 +020064 ctx->total[0] = 0;
65 ctx->total[1] = 0;
Heiko Schocher633e03a2007-06-22 19:11:54 +020066
Wolfgang Denka0453aa2007-07-10 00:01:28 +020067 ctx->state[0] = 0x67452301;
68 ctx->state[1] = 0xEFCDAB89;
69 ctx->state[2] = 0x98BADCFE;
70 ctx->state[3] = 0x10325476;
71 ctx->state[4] = 0xC3D2E1F0;
Heiko Schocher633e03a2007-06-22 19:11:54 +020072}
73
Wolfgang Denka0453aa2007-07-10 00:01:28 +020074static void sha1_process (sha1_context * ctx, unsigned char data[64])
Heiko Schocher633e03a2007-06-22 19:11:54 +020075{
Wolfgang Denka0453aa2007-07-10 00:01:28 +020076 unsigned long temp, W[16], A, B, C, D, E;
Heiko Schocher633e03a2007-06-22 19:11:54 +020077
Wolfgang Denka0453aa2007-07-10 00:01:28 +020078 GET_UINT32_BE (W[0], data, 0);
79 GET_UINT32_BE (W[1], data, 4);
80 GET_UINT32_BE (W[2], data, 8);
81 GET_UINT32_BE (W[3], data, 12);
82 GET_UINT32_BE (W[4], data, 16);
83 GET_UINT32_BE (W[5], data, 20);
84 GET_UINT32_BE (W[6], data, 24);
85 GET_UINT32_BE (W[7], data, 28);
86 GET_UINT32_BE (W[8], data, 32);
87 GET_UINT32_BE (W[9], data, 36);
88 GET_UINT32_BE (W[10], data, 40);
89 GET_UINT32_BE (W[11], data, 44);
90 GET_UINT32_BE (W[12], data, 48);
91 GET_UINT32_BE (W[13], data, 52);
92 GET_UINT32_BE (W[14], data, 56);
93 GET_UINT32_BE (W[15], data, 60);
Heiko Schocher633e03a2007-06-22 19:11:54 +020094
Wolfgang Denka0453aa2007-07-10 00:01:28 +020095#define S(x,n) ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))
Heiko Schocher633e03a2007-06-22 19:11:54 +020096
Wolfgang Denka0453aa2007-07-10 00:01:28 +020097#define R(t) ( \
98 temp = W[(t - 3) & 0x0F] ^ W[(t - 8) & 0x0F] ^ \
99 W[(t - 14) & 0x0F] ^ W[ t & 0x0F], \
100 ( W[t & 0x0F] = S(temp,1) ) \
Heiko Schocher633e03a2007-06-22 19:11:54 +0200101)
102
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200103#define P(a,b,c,d,e,x) { \
104 e += S(a,5) + F(b,c,d) + K + x; b = S(b,30); \
Heiko Schocher633e03a2007-06-22 19:11:54 +0200105}
106
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200107 A = ctx->state[0];
108 B = ctx->state[1];
109 C = ctx->state[2];
110 D = ctx->state[3];
111 E = ctx->state[4];
Heiko Schocher633e03a2007-06-22 19:11:54 +0200112
113#define F(x,y,z) (z ^ (x & (y ^ z)))
114#define K 0x5A827999
115
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200116 P (A, B, C, D, E, W[0]);
117 P (E, A, B, C, D, W[1]);
118 P (D, E, A, B, C, W[2]);
119 P (C, D, E, A, B, W[3]);
120 P (B, C, D, E, A, W[4]);
121 P (A, B, C, D, E, W[5]);
122 P (E, A, B, C, D, W[6]);
123 P (D, E, A, B, C, W[7]);
124 P (C, D, E, A, B, W[8]);
125 P (B, C, D, E, A, W[9]);
126 P (A, B, C, D, E, W[10]);
127 P (E, A, B, C, D, W[11]);
128 P (D, E, A, B, C, W[12]);
129 P (C, D, E, A, B, W[13]);
130 P (B, C, D, E, A, W[14]);
131 P (A, B, C, D, E, W[15]);
132 P (E, A, B, C, D, R (16));
133 P (D, E, A, B, C, R (17));
134 P (C, D, E, A, B, R (18));
135 P (B, C, D, E, A, R (19));
Heiko Schocher633e03a2007-06-22 19:11:54 +0200136
137#undef K
138#undef F
139
140#define F(x,y,z) (x ^ y ^ z)
141#define K 0x6ED9EBA1
142
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200143 P (A, B, C, D, E, R (20));
144 P (E, A, B, C, D, R (21));
145 P (D, E, A, B, C, R (22));
146 P (C, D, E, A, B, R (23));
147 P (B, C, D, E, A, R (24));
148 P (A, B, C, D, E, R (25));
149 P (E, A, B, C, D, R (26));
150 P (D, E, A, B, C, R (27));
151 P (C, D, E, A, B, R (28));
152 P (B, C, D, E, A, R (29));
153 P (A, B, C, D, E, R (30));
154 P (E, A, B, C, D, R (31));
155 P (D, E, A, B, C, R (32));
156 P (C, D, E, A, B, R (33));
157 P (B, C, D, E, A, R (34));
158 P (A, B, C, D, E, R (35));
159 P (E, A, B, C, D, R (36));
160 P (D, E, A, B, C, R (37));
161 P (C, D, E, A, B, R (38));
162 P (B, C, D, E, A, R (39));
Heiko Schocher633e03a2007-06-22 19:11:54 +0200163
164#undef K
165#undef F
166
167#define F(x,y,z) ((x & y) | (z & (x | y)))
168#define K 0x8F1BBCDC
169
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200170 P (A, B, C, D, E, R (40));
171 P (E, A, B, C, D, R (41));
172 P (D, E, A, B, C, R (42));
173 P (C, D, E, A, B, R (43));
174 P (B, C, D, E, A, R (44));
175 P (A, B, C, D, E, R (45));
176 P (E, A, B, C, D, R (46));
177 P (D, E, A, B, C, R (47));
178 P (C, D, E, A, B, R (48));
179 P (B, C, D, E, A, R (49));
180 P (A, B, C, D, E, R (50));
181 P (E, A, B, C, D, R (51));
182 P (D, E, A, B, C, R (52));
183 P (C, D, E, A, B, R (53));
184 P (B, C, D, E, A, R (54));
185 P (A, B, C, D, E, R (55));
186 P (E, A, B, C, D, R (56));
187 P (D, E, A, B, C, R (57));
188 P (C, D, E, A, B, R (58));
189 P (B, C, D, E, A, R (59));
Heiko Schocher633e03a2007-06-22 19:11:54 +0200190
191#undef K
192#undef F
193
194#define F(x,y,z) (x ^ y ^ z)
195#define K 0xCA62C1D6
196
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200197 P (A, B, C, D, E, R (60));
198 P (E, A, B, C, D, R (61));
199 P (D, E, A, B, C, R (62));
200 P (C, D, E, A, B, R (63));
201 P (B, C, D, E, A, R (64));
202 P (A, B, C, D, E, R (65));
203 P (E, A, B, C, D, R (66));
204 P (D, E, A, B, C, R (67));
205 P (C, D, E, A, B, R (68));
206 P (B, C, D, E, A, R (69));
207 P (A, B, C, D, E, R (70));
208 P (E, A, B, C, D, R (71));
209 P (D, E, A, B, C, R (72));
210 P (C, D, E, A, B, R (73));
211 P (B, C, D, E, A, R (74));
212 P (A, B, C, D, E, R (75));
213 P (E, A, B, C, D, R (76));
214 P (D, E, A, B, C, R (77));
215 P (C, D, E, A, B, R (78));
216 P (B, C, D, E, A, R (79));
Heiko Schocher633e03a2007-06-22 19:11:54 +0200217
218#undef K
219#undef F
220
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200221 ctx->state[0] += A;
222 ctx->state[1] += B;
223 ctx->state[2] += C;
224 ctx->state[3] += D;
225 ctx->state[4] += E;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200226}
227
228/*
229 * SHA-1 process buffer
230 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200231void sha1_update (sha1_context * ctx, unsigned char *input, int ilen)
Heiko Schocher633e03a2007-06-22 19:11:54 +0200232{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200233 int fill;
234 unsigned long left;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200235
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200236 if (ilen <= 0)
237 return;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200238
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200239 left = ctx->total[0] & 0x3F;
240 fill = 64 - left;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200241
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200242 ctx->total[0] += ilen;
243 ctx->total[0] &= 0xFFFFFFFF;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200244
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200245 if (ctx->total[0] < (unsigned long) ilen)
246 ctx->total[1]++;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200247
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200248 if (left && ilen >= fill) {
249 memcpy ((void *) (ctx->buffer + left), (void *) input, fill);
250 sha1_process (ctx, ctx->buffer);
251 input += fill;
252 ilen -= fill;
253 left = 0;
254 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200255
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200256 while (ilen >= 64) {
257 sha1_process (ctx, input);
258 input += 64;
259 ilen -= 64;
260 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200261
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200262 if (ilen > 0) {
263 memcpy ((void *) (ctx->buffer + left), (void *) input, ilen);
264 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200265}
266
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200267static const unsigned char sha1_padding[64] = {
268 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
269 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
270 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
271 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Heiko Schocher633e03a2007-06-22 19:11:54 +0200272};
273
274/*
275 * SHA-1 final digest
276 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200277void sha1_finish (sha1_context * ctx, unsigned char output[20])
Heiko Schocher633e03a2007-06-22 19:11:54 +0200278{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200279 unsigned long last, padn;
280 unsigned long high, low;
281 unsigned char msglen[8];
Heiko Schocher633e03a2007-06-22 19:11:54 +0200282
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200283 high = (ctx->total[0] >> 29)
284 | (ctx->total[1] << 3);
285 low = (ctx->total[0] << 3);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200286
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200287 PUT_UINT32_BE (high, msglen, 0);
288 PUT_UINT32_BE (low, msglen, 4);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200289
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200290 last = ctx->total[0] & 0x3F;
291 padn = (last < 56) ? (56 - last) : (120 - last);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200292
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200293 sha1_update (ctx, (unsigned char *) sha1_padding, padn);
294 sha1_update (ctx, msglen, 8);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200295
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200296 PUT_UINT32_BE (ctx->state[0], output, 0);
297 PUT_UINT32_BE (ctx->state[1], output, 4);
298 PUT_UINT32_BE (ctx->state[2], output, 8);
299 PUT_UINT32_BE (ctx->state[3], output, 12);
300 PUT_UINT32_BE (ctx->state[4], output, 16);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200301}
302
303/*
304 * Output = SHA-1( input buffer )
305 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200306void sha1_csum (unsigned char *input, int ilen, unsigned char output[20])
Heiko Schocher633e03a2007-06-22 19:11:54 +0200307{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200308 sha1_context ctx;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200309
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200310 sha1_starts (&ctx);
311 sha1_update (&ctx, input, ilen);
312 sha1_finish (&ctx, output);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200313}
314
315/*
Bartlomiej Siekada5045d2008-04-22 12:27:56 +0200316 * Output = SHA-1( input buffer ). Trigger the watchdog every 'chunk_sz'
317 * bytes of input processed.
318 */
319void sha1_csum_wd (unsigned char *input, int ilen, unsigned char output[20],
320 unsigned int chunk_sz)
321{
322 sha1_context ctx;
323#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
324 unsigned char *end, *curr;
325 int chunk;
326#endif
327
328 sha1_starts (&ctx);
329
330#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
331 curr = input;
332 end = input + ilen;
333 while (curr < end) {
334 chunk = end - curr;
335 if (chunk > chunk_sz)
336 chunk = chunk_sz;
337 sha1_update (&ctx, curr, chunk);
338 curr += chunk;
339 WATCHDOG_RESET ();
340 }
341#else
342 sha1_update (&ctx, input, ilen);
343#endif
344
345 sha1_finish (&ctx, output);
346}
347
348/*
Heiko Schocher633e03a2007-06-22 19:11:54 +0200349 * Output = HMAC-SHA-1( input buffer, hmac key )
350 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200351void sha1_hmac (unsigned char *key, int keylen,
352 unsigned char *input, int ilen, unsigned char output[20])
Heiko Schocher633e03a2007-06-22 19:11:54 +0200353{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200354 int i;
355 sha1_context ctx;
356 unsigned char k_ipad[64];
357 unsigned char k_opad[64];
358 unsigned char tmpbuf[20];
Heiko Schocher633e03a2007-06-22 19:11:54 +0200359
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200360 memset (k_ipad, 0x36, 64);
361 memset (k_opad, 0x5C, 64);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200362
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200363 for (i = 0; i < keylen; i++) {
364 if (i >= 64)
365 break;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200366
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200367 k_ipad[i] ^= key[i];
368 k_opad[i] ^= key[i];
369 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200370
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200371 sha1_starts (&ctx);
372 sha1_update (&ctx, k_ipad, 64);
373 sha1_update (&ctx, input, ilen);
374 sha1_finish (&ctx, tmpbuf);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200375
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200376 sha1_starts (&ctx);
377 sha1_update (&ctx, k_opad, 64);
378 sha1_update (&ctx, tmpbuf, 20);
379 sha1_finish (&ctx, output);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200380
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200381 memset (k_ipad, 0, 64);
382 memset (k_opad, 0, 64);
383 memset (tmpbuf, 0, 20);
384 memset (&ctx, 0, sizeof (sha1_context));
Heiko Schocher633e03a2007-06-22 19:11:54 +0200385}
386
387static const char _sha1_src[] = "_sha1_src";
388
389#ifdef SELF_TEST
390/*
391 * FIPS-180-1 test vectors
392 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200393static const char sha1_test_str[3][57] = {
394 {"abc"},
395 {"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"},
396 {""}
Heiko Schocher633e03a2007-06-22 19:11:54 +0200397};
398
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200399static const unsigned char sha1_test_sum[3][20] = {
400 {0xA9, 0x99, 0x3E, 0x36, 0x47, 0x06, 0x81, 0x6A, 0xBA, 0x3E,
401 0x25, 0x71, 0x78, 0x50, 0xC2, 0x6C, 0x9C, 0xD0, 0xD8, 0x9D},
402 {0x84, 0x98, 0x3E, 0x44, 0x1C, 0x3B, 0xD2, 0x6E, 0xBA, 0xAE,
403 0x4A, 0xA1, 0xF9, 0x51, 0x29, 0xE5, 0xE5, 0x46, 0x70, 0xF1},
404 {0x34, 0xAA, 0x97, 0x3C, 0xD4, 0xC4, 0xDA, 0xA4, 0xF6, 0x1E,
405 0xEB, 0x2B, 0xDB, 0xAD, 0x27, 0x31, 0x65, 0x34, 0x01, 0x6F}
Heiko Schocher633e03a2007-06-22 19:11:54 +0200406};
407
408/*
409 * Checkup routine
410 */
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200411int sha1_self_test (void)
Heiko Schocher633e03a2007-06-22 19:11:54 +0200412{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200413 int i, j;
414 unsigned char buf[1000];
415 unsigned char sha1sum[20];
416 sha1_context ctx;
Heiko Schocher633e03a2007-06-22 19:11:54 +0200417
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200418 for (i = 0; i < 3; i++) {
419 printf (" SHA-1 test #%d: ", i + 1);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200420
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200421 sha1_starts (&ctx);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200422
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200423 if (i < 2)
424 sha1_update (&ctx, (unsigned char *) sha1_test_str[i],
425 strlen (sha1_test_str[i]));
426 else {
427 memset (buf, 'a', 1000);
428 for (j = 0; j < 1000; j++)
429 sha1_update (&ctx, buf, 1000);
430 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200431
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200432 sha1_finish (&ctx, sha1sum);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200433
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200434 if (memcmp (sha1sum, sha1_test_sum[i], 20) != 0) {
435 printf ("failed\n");
436 return (1);
437 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200438
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200439 printf ("passed\n");
440 }
Heiko Schocher633e03a2007-06-22 19:11:54 +0200441
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200442 printf ("\n");
443 return (0);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200444}
445#else
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200446int sha1_self_test (void)
Heiko Schocher633e03a2007-06-22 19:11:54 +0200447{
Wolfgang Denka0453aa2007-07-10 00:01:28 +0200448 return (0);
Heiko Schocher633e03a2007-06-22 19:11:54 +0200449}
450#endif