source: trunk/include/sh_tiger.h@ 14

Last change on this file since 14 was 1, checked in by katerina, 19 years ago

Initial import

File size: 863 bytes
RevLine 
[1]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
9typedef enum {
10 TIGER_FILE,
11 TIGER_FD,
12 TIGER_DATA
13} TigerType;
14
15extern SL_TICKET tiger_fd;
16
17/* the checksum function
18 */
19/*@owned@*/ char * sh_tiger_hash (char * filename, TigerType what,
20 unsigned long Length);
21
22/* NEW Thu Oct 18 19:59:08 CEST 2001
23 */
24int sh_tiger_hashtype (char * c);
25char * sh_tiger_generic_hash (char * filename, TigerType what,
26 unsigned long Length, int timeout);
27
28UINT32 * sh_tiger_hash_uint32 (char * filename,
29 TigerType what,
30 unsigned long Length);
31
32/* get the type of hash function used
33 * 0 = tiger192, 1 = sha1, 2 = md5
34 */
35int sh_tiger_get_hashtype ();
36
37/* GnuPG-like format
38 */
39/*@owned@*/ char * sh_tiger_hash_gpg (char * filename, TigerType what,
40 unsigned long Length);
41#endif
Note: See TracBrowser for help on using the repository browser.