2acc0ac542
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
* \/ \/ \/ \/ \/
|
|
* Module: rbutil
|
|
* File: md5sum.h
|
|
*
|
|
* Copyright (C) 2007 Dominik Wenger
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
* KIND, either express or implied.
|
|
*
|
|
****************************************************************************/
|
|
|
|
|
|
#ifndef MD5SUM_H_INCLUDED
|
|
#define MD5SUM_H_INCLUDED
|
|
|
|
#ifndef uint8
|
|
#define uint8 unsigned char
|
|
#endif
|
|
|
|
|
|
#ifndef uint32
|
|
#define uint32 unsigned long int
|
|
#endif
|
|
|
|
#include <QtCore>
|
|
|
|
typedef struct
|
|
{
|
|
uint32 total[2];
|
|
uint32 state[4];
|
|
uint8 buffer[64];
|
|
}
|
|
md5_context;
|
|
|
|
void md5_starts( md5_context *ctx );
|
|
void md5_update( md5_context *ctx, uint8 *input, uint32 length );
|
|
void md5_finish( md5_context *ctx, uint8 digest[16] );
|
|
|
|
int FileMD5(QString name, char *md5);
|
|
|
|
#endif // MD5SUM_H_INCLUDED
|