Go to the documentation of this file.
26 #ifndef SURICATA_UTIL_DETECT_FILE_HASH_H
27 #define SURICATA_UTIL_DETECT_FILE_HASH_H
37 int ReadHashString(uint8_t *,
const char *,
const char *,
int, uint16_t);
int ReadHashString(uint8_t *, const char *, const char *, int, uint16_t)
Read the bytes of a hash from an hexadecimal string.
main detection engine ctx
struct DetectFileHashData_ DetectFileHashData
int DetectFileHashMatch(DetectEngineThreadCtx *, Flow *, uint8_t, File *, const Signature *, const SigMatchCtx *)
Match the specified file hash.
int DetectFileHashSetup(DetectEngineCtx *, Signature *, const char *, uint16_t, int)
this function is used to parse filemd5, filesha1 and filesha256 options
int LoadHashTable(ROHashTable *, const char *, const char *, int, uint32_t)
Store a hash into the hash table.
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
void DetectFileHashFree(DetectEngineCtx *, void *)
this function will free memory associated with DetectFileHashData