| 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 NTEIGHTXL_H |
| 33 |
#define NTEIGHTXL_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 nteightxl_ext95[95]="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"; |
| 45 |
|
| 46 |
static const uint64_t nteightxl_sizes[10] = { 4, 3954293915, 152934456304LLU, 382336140760LLU, 152934550784LLU, 382336376960LLU, 152934374040LLU, 382335935100LLU, 152933057672LLU, 382332644180LLU}; |
| 47 |
|
| 48 |
int nteightxl_setup(void *tbl_); |
| 49 |
void nteightxl_find(void *hsh_, void *tbl_, void *el_); |
| 50 |
int nteightxl_lookup_idx(void *hsh_, void *tbl_, void *el_); |
| 51 |
int nteightxl_lookup_end(void *hsh_, void *tbl_, void *el_); |
| 52 |
int nteightxl_lookup_srt(void *hsh_, void *tbl_, void *el_); |
| 53 |
int nteightxl_check(void *hsh_, void *tbl_, void *el_); |
| 54 |
int nteightxl_isvalid(void *hsh_, void *tbl_); |
| 55 |
|
| 56 |
void nteightxl_mkredux(table_t *tbl, uchar_t *hash, uchar_t *pwd, int n_redux); |
| 57 |
void nteightxl_mkhash(uchar_t *pwd, uchar_t *hash); |
| 58 |
|
| 59 |
uint64_t nteightxl_bin95(uchar_t *input, int length); |
| 60 |
int nteightxl_unbin95(uint64_t input, uchar_t *output, int length); |
| 61 |
|
| 62 |
#ifdef __cplusplus |
| 63 |
} |
| 64 |
#endif |
| 65 |
#endif |