| 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 |
#ifndef NTSPECIALXL_H |
| 33 |
#define NTSPECIALXL_H |
| 34 |
|
| 35 |
#include <stdint.h> |
| 36 |
|
| 37 |
#include "misc.h" |
| 38 |
#include "table.h" |
| 39 |
|
| 40 |
#ifdef __cplusplus |
| 41 |
extern "C" { |
| 42 |
#endif |
| 43 |
|
| 44 |
static const uchar_t ntspecialxl_ext95[95]="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"; |
| 45 |
|
| 46 |
static const uint64_t ntspecialxl_max[8] = {0ULL, 0ULL, 18446744073684721294ULL, 18446744071325840772ULL, 18446743847232191149ULL, 18446722558335476990ULL, 18444700113147631855ULL, 18252567820302344023ULL}; |
| 47 |
|
| 48 |
static const uint64_t ntspecialxl_offset[7] = {0ULL, 95ULL, 9120ULL, 866495ULL, 82317120ULL, 7820126495ULL, 742912017120ULL}; |
| 49 |
|
| 50 |
|
| 51 |
int ntspecialxl_setup(void *tbl_); |
| 52 |
void ntspecialxl_find(void *hsh_, void *tbl_, void *el_); |
| 53 |
int ntspecialxl_lookup_end(void *hsh_, void *tbl_, void *el_); |
| 54 |
int ntspecialxl_lookup_srt(void *hsh_, void *tbl_, void *el_); |
| 55 |
int ntspecialxl_check(void *hsh_, void *tbl_, void *el_); |
| 56 |
int ntspecialxl_isvalid(void *hsh_, void *tbl_); |
| 57 |
|
| 58 |
void ntspecialxl_mkredux(table_t *tbl, uchar_t *hash, uchar_t *pwd, int n_redux); |
| 59 |
void ntspecialxl_mkhash(uchar_t *pwd, uchar_t *hash); |
| 60 |
|
| 61 |
uint64_t ntspecialxl_bin95(uchar_t *input, int length); |
| 62 |
int ntspecialxl_unbin95(uint64_t input, uchar_t *output, int length); |
| 63 |
|
| 64 |
#ifdef __cplusplus |
| 65 |
} |
| 66 |
#endif |
| 67 |
#endif |