mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Switch file UID hashing from md5 to highwayhash.
This commit switches UID hashing from md5 to a highway hash. It also moves the salt value out of the file plugin - and makes it installation-specific instead - it is moved to the global namespace. There now are digest hash functions to make "static" installation-specific hashes that are stable over workers available to everyone; hashes can be 64, 128 or 256 bits in size. Due to the fact that we switch the file hashing algorithm, all file hashes change. The underlyigng algorithm that is used for hashing is highwayhash-128, which is significantly faster than md5.
This commit is contained in:
parent
bc546634d1
commit
3bce313b12
153 changed files with 953 additions and 799 deletions
|
@ -117,15 +117,7 @@ export {
|
|||
## any files transferred over given network protocol analyzers.
|
||||
const disable: table[Files::Tag] of bool = table() &redef;
|
||||
|
||||
## The salt concatenated to unique file handle strings generated by
|
||||
## :zeek:see:`get_file_handle` before hashing them in to a file id
|
||||
## (the *id* field of :zeek:see:`fa_file`).
|
||||
## Provided to help mitigate the possibility of manipulating parts of
|
||||
## network connections that factor in to the file handle in order to
|
||||
## generate two handles that would hash to the same file id.
|
||||
const salt = "I recommend changing this." &redef;
|
||||
|
||||
## Decide if you want to automatically attached analyzers to
|
||||
## Decide if you want to automatically attached analyzers to
|
||||
## files based on the detected mime type of the file.
|
||||
const analyze_by_mime_type_automatically = T &redef;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue