| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
#ifndef HASHTOPWD_H |
| 36 |
#define HASHTOPWD_H |
| 37 |
|
| 38 |
#include <stdint.h> |
| 39 |
|
| 40 |
#include "pattern.h" |
| 41 |
|
| 42 |
#define PWD_UTF_SIZE 32 |
| 43 |
|
| 44 |
uint64_t getPatternFirstRound(patternArray* array, uint64_t index, unsigned int* patIndex); |
| 45 |
unsigned int selectCharacterUTFFirstRound(markovDynProgWrapper* mdpw, markovImprobaStruct* mis, uint64_t patternDescriptor, uint64_t patternLength, uint64_t subIndex, char* result); |
| 46 |
unsigned int selectCharacterUTF(markovDynProgWrapper* mdpw, markovImprobaStruct* mis, uint64_t patternDescriptor, uint64_t patternLength, uint64_t biasedCoin, uint64_t fairDice, char* result); |
| 47 |
|
| 48 |
char checkFoundPwd(char* pwdUTF, unsigned int taille, unsigned int* hash, char* pwd); |
| 49 |
uint64_t hashToIndex(patternArray* array, markovDynProgWrapper* mdpw, markovImprobaStruct* mis, unsigned int* hashsrc, const unsigned int startC, const unsigned int endC, const unsigned int threshold, const unsigned int currentTable, const unsigned int chainLength); |
| 50 |
unsigned int indexToPwdUTF(patternArray* array, markovDynProgWrapper* mdpw, markovImprobaStruct* mis, const uint64_t start, const unsigned int threshold, const unsigned int endC, const unsigned int currentTable, const unsigned int chainLength, char* pwdUTF); |
| 51 |
void hashNTH(char* plainText, unsigned char* hash); |
| 52 |
|
| 53 |
#endif |