The Sleuth Kit
4.11.1
|
Stores information about an open hash database. More...
#include <tsk_hashdb.h>
Public Member Functions | |
uint8_t | createIndex (TSK_TCHAR *a_type) |
Create an index for an open hash database. More... | |
TSK_HDB_DBTYPE_ENUM | getDbType () const |
get type of database More... | |
uint8_t | hasIndex (uint8_t a_htype) |
Determine if the open hash database has an index. More... | |
int8_t | lookupRaw (uint8_t *a_hash, uint8_t a_len, TSK_HDB_FLAG_ENUM a_flags, TSK_HDB_LOOKUP_FN a_action, void *a_ptr) |
Search the index for the given hash value given (in binary form). More... | |
int8_t | lookupStr (const char *a_hash, TSK_HDB_FLAG_ENUM a_flags, TSK_HDB_LOOKUP_FN a_action, void *a_ptr) |
Search the index for a text/ASCII hash value See tsk_hdb_lookup_str() for details. More... | |
uint8_t | open (TSK_TCHAR *a_dbFile, TSK_HDB_OPEN_ENUM a_flags) |
Open a hash database. More... | |
~TskHdbInfo () | |
Close an open hash database. | |
Stores information about an open hash database.
To use this object, open() should be called first. Otherwise, the other functions will have undefined return values.
|
inline |
Create an index for an open hash database.
See tsk_hdb_makeindex() for details.
a_type | Text of hash database type |
References tsk_hdb_make_index().
|
inline |
get type of database
References TSK_HDB_INFO::db_type, and TSK_HDB_DBTYPE_INVALID_ID.
|
inline |
Determine if the open hash database has an index.
See tsk_hdb_hasindex for details.
a_htype | Hash type that index should be of |
References tsk_hdb_has_idx().
|
inline |
Search the index for the given hash value given (in binary form).
See tsk_hdb_lookup_raw() for details.
a_hash | Array with binary hash value to search for |
a_len | Number of bytes in binary hash value |
a_flags | Flags to use in lookup |
a_action | Callback function to call for each hash db entry (not called if QUICK flag is given) |
a_ptr | Pointer to data to pass to each callback |
References tsk_hdb_lookup_raw().
|
inline |
Search the index for a text/ASCII hash value See tsk_hdb_lookup_str() for details.
a_hash | Hash value to search for (NULL terminated string) |
a_flags | Flags to use in lookup |
a_action | Callback function to call for each hash db entry (not called if QUICK flag is given) |
a_ptr | Pointer to data to pass to each callback |
References tsk_hdb_lookup_str().
|
inline |
Open a hash database.
See tsk_hdb_open() for details.
a_dbFile | Path to database. |
a_flags | Flags for opening the database. |
References tsk_hdb_open().
Copyright © 2007-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.