forked from jtesta/rainbowcrackalack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify.h
24 lines (14 loc) · 787 Bytes
/
verify.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _VERIFY_H
#define _VERIFY_H
#include <inttypes.h>
#define VERIFY_TABLE_TYPE_LOOKUP 2
#define VERIFY_TABLE_TYPE_QUICK 1
#define VERIFY_TABLE_TYPE_GENERATED 0
#define VERIFY_TABLE_IS_COMPLETE 1
#define VERIFY_TABLE_MAY_BE_INCOMPLETE 0
#define VERIFY_TRUNCATE_ON_ERROR 1
#define VERIFY_DONT_TRUNCATE 0
void _print_chain_error(uint64_t random_chain, uint64_t start, uint64_t actual_end, uint64_t computed_end);
int verify_rainbowtable(uint64_t *rainbowtable, unsigned int num_chains, unsigned int table_type, uint64_t expected_start, uint64_t plaintext_space_total, unsigned int *error_chain_num);
int verify_rainbowtable_file(char *filename, unsigned int table_type, unsigned int table_should_be_complete, unsigned int truncate_at_error, int num_chains_to_verify);
#endif