File: match.h

package info (click to toggle)
ssdeep 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,652 kB
  • ctags: 436
  • sloc: sh: 10,876; cpp: 1,601; ansic: 1,034; makefile: 50
file content (44 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (8)
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