~ubuntu-branches/ubuntu/saucy/ophcrack/saucy-proposed

« back to all changes in this revision

Viewing changes to src/ntproba/aliasMarkov.h

  • Committer: Package Import Robot
  • Author(s): Daniel Echeverry
  • Date: 2013-06-08 09:50:42 UTC
  • mfrom: (1.1.9) (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20130608095042-duhd3t9y4p3nlljm
Tags: 3.6.0-1
* New upstream release.
* debian/patches
  + Remove 00_validate_sysinfo.diff patch.
    + Merge with upstream.
  + Remove 01_fix_spelling_error.diff patch.
    + Merge with upstream.
* Update desktop file.
  + Remove extension from icon name.
  + Add keywords field.
* Extend debian copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
/* This file is a copy from implCPU/v6 */
 
34
 
 
35
#ifndef ALIASMARKOV_H
 
36
#define ALIASMARKOV_H
 
37
 
 
38
/*attention: ces structures ne doivent pas etre modifie sans modifier le kernel et les m�thodes get UTF*/
 
39
 
 
40
#include <stdint.h>
 
41
 
 
42
typedef struct aliasMarkov64Element aliasMarkov64Element;
 
43
struct aliasMarkov64Element{
 
44
        uint64_t space;
 
45
        uint64_t proba[26];
 
46
        unsigned char alias[26];
 
47
        unsigned char align64Padding[6];
 
48
};
 
49
 
 
50
typedef struct aliasMarkov32Element aliasMarkov32Element;
 
51
struct aliasMarkov32Element{
 
52
        uint64_t space;
 
53
        unsigned int proba[26];
 
54
        unsigned char alias[26];
 
55
        unsigned char align64Padding[6];
 
56
};
 
57
 
 
58
#include "markov.h"
 
59
 
 
60
uint64_t getMark0BufferSizeRoot(markov0DynProg* m0dp);
 
61
uint64_t getMark0BufferSizeFLine(markov0DynProg* m0dp);
 
62
uint64_t getMark0BufferSizeMain(markov0DynProg* m0dp);
 
63
 
 
64
uint64_t getMark1BufferSizeRoot(markov1DynProg* m1dp);
 
65
uint64_t getMark1BufferSizeFLine(markov1DynProg* m1dp);
 
66
uint64_t getMark1BufferSizeMain(markov1DynProg* m1dp);
 
67
 
 
68
uint64_t getMark2BufferSizeRoot(markov2DynProg* m2dp);
 
69
uint64_t getMark2BufferSizeFLine(markov2DynProg* m2dp);
 
70
uint64_t getMark2BufferSizeMain(markov2DynProg* m2dp);
 
71
 
 
72
void fillAliasMarkov0BufferRoot(markov0DynProg* m0dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferRoot);
 
73
void fillAliasMarkov0BufferFLine(markov0DynProg* m0dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferFLine);
 
74
void fillAliasMarkov0BufferMain(markov0DynProg* m0dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferMain);
 
75
 
 
76
void fillAliasMarkov1BufferRoot(markov1DynProg* m1dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferRoot);
 
77
void fillAliasMarkov1BufferFLine(markov1DynProg* m1dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferFLine);
 
78
void fillAliasMarkov1BufferMain(markov1DynProg* m1dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferMain);
 
79
 
 
80
void fillAliasMarkov2BufferRoot(markov2DynProg* m2dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferRoot);
 
81
void fillAliasMarkov2BufferFLine(markov2DynProg* m2dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferFLine);
 
82
void fillAliasMarkov2BufferMain(markov2DynProg* m2dp, AmarkovDynProg* amdp, markovImprobaStruct* mis, char* bufferMain);
 
83
 
 
84
 
 
85
#endif