]> git.sesse.net Git - freerainbowtables/blob - Common/rt api/HashAlgorithm.h
64-bit fixes for distrrtgen
[freerainbowtables] / Common / rt api / HashAlgorithm.h
1 /*
2  * freerainbowtables is a project for generating, distributing, and using
3  * perfect rainbow tables
4  *
5  * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
6  * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>
7  * Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
8  * Copyright 2009, 2010 James Nobis <frt@quelrod.net>
9  *
10  * This file is part of freerainbowtables.
11  *
12  * freerainbowtables is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * freerainbowtables is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with freerainbowtables.  If not, see <http://www.gnu.org/licenses/>.
24  */
25
26 #ifndef _HASHALGORITHM_H
27 #define _HASHALGORITHM_H
28
29 void HashLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
30 void HashNTLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
31 //void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
32 void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
33 void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
34 void HashDoubleMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
35 void HashSHA1(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
36 //void HashRIPEMD160(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
37 void HashMSCACHE(unsigned char *pPlain, int nPlainLen, unsigned char* pHash);
38
39 //****************************************************************************
40 // MySQL Password Hashing
41 //****************************************************************************
42
43 void HashMySQL323(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
44 void HashMySQLSHA1(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
45
46 //****************************************************************************
47 // Cisco PIX Password Hashing
48 //****************************************************************************
49
50 void HashPIX(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
51
52 //****************************************************************************
53 // (HALF) LM CHALL hashing
54 void HashLMCHALL(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
55 void HashHALFLMCHALL(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
56
57 // From mao
58 void HashNTLMCHALL(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
59 void HashORACLE(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
60
61 #if !defined(_WIN32) || defined(__GNUC__)
62 char *strupr(char *s1);
63 #endif
64 #endif