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.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/rbutil/rbutilqt/irivertools/md5sum.h b/rbutil/rbutilqt/irivertools/md5sum.h
deleted file mode 100644
index 45cc734034..0000000000
--- a/rbutil/rbutilqt/irivertools/md5sum.h
+++ /dev/null
@@ -1,52 +0,0 @@
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 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ****************************************************************************/
22
23
24#ifndef MD5SUM_H_INCLUDED
25#define MD5SUM_H_INCLUDED
26
27#ifndef uint8
28#define uint8 unsigned char
29#endif
30
31
32#ifndef uint32
33#define uint32 unsigned long int
34#endif
35
36#include <QtCore>
37
38typedef struct
39{
40 uint32 total[2];
41 uint32 state[4];
42 uint8 buffer[64];
43}
44md5_context;
45
46void md5_starts( md5_context *ctx );
47void md5_update( md5_context *ctx, uint8 *input, uint32 length );
48void md5_finish( md5_context *ctx, uint8 digest[16] );
49
50int FileMD5(QString name, char *md5);
51
52#endif // MD5SUM_H_INCLUDED