Bartlomiej Sieka | 0ede0c3 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file was transplanted with slight modifications from Linux sources |
| 3 | * (fs/cifs/md5.h) into U-Boot by Bartlomiej Sieka <tur@semihalf.com>. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _MD5_H |
| 7 | #define _MD5_H |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | struct MD5Context { |
| 12 | __u32 buf[4]; |
| 13 | __u32 bits[2]; |
| 14 | unsigned char in[64]; |
| 15 | }; |
| 16 | |
| 17 | /* |
| 18 | * Calculate and store in 'output' the MD5 digest of 'len' bytes at |
| 19 | * 'input'. 'output' must have enough space to hold 16 bytes. |
| 20 | */ |
| 21 | void md5 (unsigned char *input, int len, unsigned char output[16]); |
| 22 | |
| 23 | #endif /* _MD5_H */ |