Sets hash database name in hdb_info based on database file path.
References TSK_HDB_INFO::db_fname, and TSK_HDB_INFO::db_name.
Search the index for the given hash value given (in binary form).
References tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), TSK_HDB_HTYPE_SHA1_LEN, and tsk_hdb_lookup_str().
Referenced by hdb_binsrch_open().
Search the index for a text/ASCII hash value.
References TSK_HDB_BINSRCH_INFO::hash_len, TSK_HDB_BINSRCH_INFO::hIdx, TSK_HDB_BINSRCH_INFO::idx_lbuf, TSK_HDB_BINSRCH_INFO::idx_llen, TSK_HDB_BINSRCH_INFO::idx_off, TSK_HDB_BINSRCH_INFO::idx_offsets, TSK_HDB_BINSRCH_INFO::idx_size, TSK_HDB_INFO::lock, PRIuSIZE, tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), tsk_error_set_errstr2(), TSK_HDB_FLAG_QUICK, TSK_HDB_HTYPE_MD5_ID, TSK_HDB_HTYPE_MD5_LEN, TSK_HDB_HTYPE_SHA1_ID, and TSK_HDB_HTYPE_SHA1_LEN.
Referenced by hdb_binsrch_open().
De-initializes struct representation of a hash database.
References TSK_HDB_INFO::db_fname, and TSK_HDB_INFO::lock.
Indicates whether a hash database accepts updates.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Adds a new entry to a hash database.
References TSK_HDB_INFO::db_type, tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Begins a transaction on a hash database.
References TSK_HDB_INFO::db_type, TSK_HDB_INFO::transaction_in_progress, tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Closes an open hash database.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Referenced by TskHdbInfo::~TskHdbInfo().
Commits a transaction on a hash database.
References TSK_HDB_INFO::db_type, TSK_HDB_INFO::transaction_in_progress, tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Creates a new hash database.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Determine if the open hash database has an index.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Referenced by TskHdbInfo::hasIndex().
Test for index only (legacy) Assumes that the db was opened using the TSK_HDB_OPEN_TRY option.
References TSK_HDB_INFO::db_type, tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), and TSK_HDB_DBTYPE_IDXONLY_ID.
Search the index for the given hash value given (in binary form).
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Referenced by TskHdbInfo::lookupRaw().
Searches a hash database for a text/ASCII hash value.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Referenced by hdb_binsrch_lookup_bin(), and TskHdbInfo::lookupStr().
Create an index for an open hash database.
References tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
Referenced by TskHdbInfo::createIndex().
Opens an existing hash database.
References idxonly_open(), PRIttocTSK, tsk_error_reset(), tsk_error_set_errno(), tsk_error_set_errstr(), TSK_HDB_DBTYPE_ENCASE_ID, TSK_HDB_DBTYPE_HK_ID, TSK_HDB_DBTYPE_IDXONLY_ID, TSK_HDB_DBTYPE_INVALID_ID, TSK_HDB_DBTYPE_MD5SUM_ID, TSK_HDB_DBTYPE_NSRL_ID, TSK_HDB_DBTYPE_SQLITE_ID, and TSK_HDB_OPEN_IDXONLY.
Referenced by TskHdbInfo::open().
Rolls back a transaction on a hash database.
References TSK_HDB_INFO::db_type, TSK_HDB_INFO::transaction_in_progress, tsk_error_reset(), tsk_error_set_errno(), and tsk_error_set_errstr().
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.