diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-07-28 14:38:25 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-07-28 14:38:25 +0000 |
commit | 488b3db547a09b25eac212e77ccb64ef81f8ce3f (patch) | |
tree | 937671a00b37f4f2ca91c9119fe079ea3e837222 /rbutil/rbutilqt/irivertools/md5sum.h | |
parent | 999676bdd9b19c9fddb143698bfb5e3f4f4ae62a (diff) | |
download | rockbox-488b3db547a09b25eac212e77ccb64ef81f8ce3f.tar.gz rockbox-488b3db547a09b25eac212e77ccb64ef81f8ce3f.zip |
rbutilQt: bootloader installation routines for iriver players. Bootloader routines are now completed. They need heavy testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14040 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/irivertools/md5sum.h')
-rw-r--r-- | rbutil/rbutilqt/irivertools/md5sum.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/irivertools/md5sum.h b/rbutil/rbutilqt/irivertools/md5sum.h new file mode 100644 index 0000000000..ed22bdbb49 --- /dev/null +++ b/rbutil/rbutilqt/irivertools/md5sum.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * Module: rbutil | ||
9 | * File: md5sum.h | ||
10 | * | ||
11 | * Copyright (C) 2007 Dominik Wenger | ||
12 | * | ||
13 | * All files in this archive are subject to the GNU General Public License. | ||
14 | * See the file COPYING in the source tree root for full license agreement. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | |||
22 | #ifndef MD5SUM_H_INCLUDED | ||
23 | #define MD5SUM_H_INCLUDED | ||
24 | |||
25 | #ifndef uint8 | ||
26 | #define uint8 unsigned char | ||
27 | #endif | ||
28 | |||
29 | |||
30 | #ifndef uint32 | ||
31 | #define uint32 unsigned long int | ||
32 | #endif | ||
33 | |||
34 | #include <QtGui> | ||
35 | |||
36 | typedef struct | ||
37 | { | ||
38 | uint32 total[2]; | ||
39 | uint32 state[4]; | ||
40 | uint8 buffer[64]; | ||
41 | } | ||
42 | md5_context; | ||
43 | |||
44 | void md5_starts( md5_context *ctx ); | ||
45 | void md5_update( md5_context *ctx, uint8 *input, uint32 length ); | ||
46 | void md5_finish( md5_context *ctx, uint8 digest[16] ); | ||
47 | |||
48 | int FileMD5(QString name, char *md5); | ||
49 | |||
50 | #endif // MD5SUM_H_INCLUDED | ||