Debian Codegraph @

src/ntproba/pattern.h

raw symbols SCIP
1 /*
2 *
3 * Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory
4 * trade-off using rainbow tables.
5 *
6 * Created with the help of: Maxime Mueller, Luca Wullschleger, Claude
7 * Hochreutiner, Andreas Huber and Etienne Dysli.
8 *
9 * Copyright (c) 2013 Philippe Oechslin, Cedric Tissieres,
10 * Bertrand Mesot, Pierre Lestringant
11 *
12 * Ophcrack 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 * Ophcrack 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 Ophcrack; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * This program is released under the GPL with the additional exemption
27 * that compiling, linking, and/or using OpenSSL is allowed.
28 *
29 *
30 *
31 *
32 */
33 /* WARNING: this file is a NOT copy from implCPU/v6 */
34
35 #ifndef PATTERN_H
36 #define PATTERN_H
37
38 #include <stdint.h>
39
40 #include "markov.h"
41
42 typedef struct patternArray patternArray;
43
44 #include "aliasPattern.h"
45
46 struct patternArray{
47 unsigned int size;
48 uint64_t* patternDescriptor;
49 uint64_t* patternLength;
50 lookUpTable* lut;
51 uint64_t* sizeArray;
52 };
53
54
55 uint64_t getPatternStructSpace(markovDynProgWrapper* mdpw, markovImprobaStruct* mis, uint64_t descriptor, uint64_t length);
56
57 char checkPatternArrayCrackMarkov(patternArray* array, markovDynProgWrapper* mdpw, markovImprobaStruct* mis);
58 unsigned int getMaxPatternLength(patternArray* array);
59 void deletePatternArray(patternArray* array);
60
61 uint64_t power(unsigned int a, unsigned int b);
62
63 #endif