summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/irivertools/md5sum.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/irivertools/md5sum.h')
-rw-r--r--rbutil/rbutilqt/irivertools/md5sum.h50
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
36typedef struct
37{
38 uint32 total[2];
39 uint32 state[4];
40 uint8 buffer[64];
41}
42md5_context;
43
44void md5_starts( md5_context *ctx );
45void md5_update( md5_context *ctx, uint8 *input, uint32 length );
46void md5_finish( md5_context *ctx, uint8 digest[16] );
47
48int FileMD5(QString name, char *md5);
49
50#endif // MD5SUM_H_INCLUDED