-
Notifications
You must be signed in to change notification settings - Fork 115
/
match.h
44 lines (32 loc) · 1.19 KB
/
match.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __MATCH_H
#define __MATCH_H
// SSDEEP
// $Id$
// Copyright (C) 2012 Kyrus.
#include "ssdeep.h"
#include "filedata.h"
// *********************************************************************
// Matching functions
// *********************************************************************
/// @brief Match the file f against the set of knowns
///
/// @return Returns false if there are no matches, true if at least one match
/// @param s State variable
/// @param f Filedata structure for the file.
bool match_compare(state *s, Filedata * f);
/// @brief Load a file of known hashes
///
/// @return Returns false on success, true on error
bool match_load(state *s, const char *fn);
/// @brief Add a single new hash to the set of known hashes
///
/// @return Returns false on success, true on error
bool match_add(state *s, Filedata * f);
/// Find and display all matches in the set of known hashes
bool find_matches_in_known(state *s);
/// Load the known hashes from the file fn and compare them to the
/// set of known hashes
bool match_compare_unknown(state *s, const char * fn);
/// Display the results of clustering operations
void display_clusters(const state *s);
#endif // ifndef __MATCH_H