# hashdb_tools_i.h

Go to the documentation of this file.

    00001 /*
    00002  * The Sleuth Kit
    00003  *
    00004  * $Date: 2007/04/19 19:01:34 $
    00005  *
    00006  * Brian Carrier [carrier@sleuthkit.org]
    00007  * Copyright (c) 2003-2007 Brian Carrier.  All rights reserved
    00008  */
    00009
    00016 #ifndef _TSK_HDB_TOOLS_I_H
    00017 #define _TSK_HDB_TOOLS_I_H
    00018
    00019 #include "hashdb_tools.h"
    00020
    00021 #ifdef __cplusplus
    00022 extern "C" {
    00023 #endif
    00024
    00025
    00026 #define TSK_HDB_MAXLEN  512
    00027
    00028 #define TSK_HDB_OFF_LEN 16
    00029
    00030
    00034 #define TSK_HDB_IDX_LEN(x) \
    00035     ( TSK_HDB_HTYPE_LEN(x) + TSK_HDB_OFF_LEN + 2)
    00036
    00040 #define TSK_HDB_IDX_HEAD_STR    "00000000000000000000000000000000000000000"
    00041
    00042
    00043
    00044     extern uint8_t tsk_hdb_idxinitialize(TSK_HDB_INFO *,
    00045                                          TSK_TCHAR * dbname);
    00046     extern uint8_t tsk_hdb_idxaddentry(TSK_HDB_INFO *, char *hvalue,
    00047                                        OFF_T offset);
    00048     extern uint8_t tsk_hdb_idxfinalize(TSK_HDB_INFO *);
    00049
    00050 /* Functions */
    00051
    00052     extern uint8_t nsrl_test(FILE *);
    00053     extern uint8_t nsrl_makeindex(TSK_HDB_INFO *, TSK_TCHAR * htype);
    00054     extern uint8_t nsrl_getentry(TSK_HDB_INFO *, char *, OFF_T,
    00055                                  TSK_HDB_FLAG_ENUM, TSK_HDB_LOOKUP_FN,
    00056                                  void *);
    00057
    00058     extern uint8_t md5sum_test(FILE *);
    00059     extern uint8_t md5sum_makeindex(TSK_HDB_INFO *, TSK_TCHAR * htype);
    00060     extern uint8_t md5sum_getentry(TSK_HDB_INFO *, char *, OFF_T,
    00061                                    TSK_HDB_FLAG_ENUM, TSK_HDB_LOOKUP_FN,
    00062                                    void *);
    00063
    00064     extern uint8_t hk_test(FILE *);
    00065     extern uint8_t hk_makeindex(TSK_HDB_INFO *, TSK_TCHAR * htype);
    00066     extern uint8_t hk_getentry(TSK_HDB_INFO *, char *, OFF_T,
    00067                                TSK_HDB_FLAG_ENUM, TSK_HDB_LOOKUP_FN,
    00068                                void *);
    00069
    00070     extern uint8_t idxonly_makeindex(TSK_HDB_INFO *, TSK_TCHAR * htype);
    00071     extern uint8_t idxonly_getentry(TSK_HDB_INFO *, char *, OFF_T,
    00072                                     TSK_HDB_FLAG_ENUM, TSK_HDB_LOOKUP_FN,
    00073                                     void *);
    00074 #ifdef __cplusplus
    00075 }
    00076 #endif
    00077 #endif