]> git.sesse.net Git - freerainbowtables/blob - Client Applications/rcracki_mt/fast_md5.h
b3db17f6cfdb2763ad25b9f178493fd83770a131
[freerainbowtables] / Client Applications / rcracki_mt / fast_md5.h
1 /*
2  * Fast implementation of the MD5 message-digest algorithm as per RFC
3  * (see http://tools.ietf.org/html/rfc1321)
4  *
5  * Author: Joao Inacio <jcinacio at gmail.com>
6  * License: Use and share as you wish at your own risk, please keep this header ;)
7  *
8  * Optimizations:
9  *  - For lengths < 16, transformation steps are "unrolled" using macros/defines
10  *  - Constants used whenever possible, it's the compiler's job to sort them out
11  *  - Padding is done on 4-byte words, and memory copied as last resort.
12  * 
13  * Copyright 2009, 2010 DaniĆ«l Niggebrugge <niggebrugge@fox-it.com>
14  * Copyright 2009, 2010 James Nobis <frt@quelrod.net>
15  *
16  * This file is part of rcracki_mt.
17  *
18  * rcracki_mt is free software: you can redistribute it and/or modify
19  * it under the terms of the GNU General Public License as published by
20  * the Free Software Foundation, either version 2 of the License, or
21  * (at your option) any later version.
22  *
23  * rcracki_mt is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with rcracki_mt.  If not, see <http://www.gnu.org/licenses/>.
30  */
31
32 #ifndef FAST_MD5_H
33 #define FAST_MD5_H
34
35 #include "global.h"
36
37 #define MD5_DIGEST_LENGTH 16
38
39 void fast_MD5(unsigned char *pData, int len, unsigned char *pDigest);
40
41 #endif // FAST_MD5_H