Line | |
---|
1 |
|
---|
2 | #ifndef SH_TIGER_H
|
---|
3 | #define SH_TIGER_H
|
---|
4 |
|
---|
5 | #include "config_xor.h"
|
---|
6 | #include "slib.h"
|
---|
7 | #include "samhain.h"
|
---|
8 |
|
---|
9 | typedef enum {
|
---|
10 | TIGER_FILE,
|
---|
11 | TIGER_FD,
|
---|
12 | TIGER_DATA
|
---|
13 | } TigerType;
|
---|
14 |
|
---|
15 | #define TIGER_NOLIM ((UINT64)-1)
|
---|
16 |
|
---|
17 | extern SL_TICKET tiger_fd;
|
---|
18 |
|
---|
19 | /* the checksum function
|
---|
20 | */
|
---|
21 | /*@owned@*/ char * sh_tiger_hash (const char * filename, TigerType what,
|
---|
22 | UINT64 Length);
|
---|
23 |
|
---|
24 | /* NEW Thu Oct 18 19:59:08 CEST 2001
|
---|
25 | */
|
---|
26 | int sh_tiger_hashtype (const char * c);
|
---|
27 | char * sh_tiger_generic_hash (char * filename, TigerType what,
|
---|
28 | UINT64 Length, int timeout);
|
---|
29 |
|
---|
30 | UINT32 * sh_tiger_hash_uint32 (char * filename,
|
---|
31 | TigerType what,
|
---|
32 | UINT64 Length);
|
---|
33 |
|
---|
34 | /* get the type of hash function used
|
---|
35 | * 0 = tiger192, 1 = sha1, 2 = md5
|
---|
36 | */
|
---|
37 | int sh_tiger_get_hashtype ();
|
---|
38 |
|
---|
39 | /* GnuPG-like format
|
---|
40 | */
|
---|
41 | /*@owned@*/ char * sh_tiger_hash_gpg (const char * filename, TigerType what,
|
---|
42 | UINT64 Length);
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.