Is your feature request related to a problem? Please describe.
The current Tlsh code is the TLSH-C, which was ported by Avast dev. This version is missing 2 functions
Load the hash value from a string (https://github.com/avast/tlshc/issues/2)
Therefore, Tlsh version that Yara is using can do hash matching only. IMO tlsh is a fuzzyhash algorithm so it should has score diffing
Is your feature request related to a problem? Please describe. The current Tlsh code is the TLSH-C, which was ported by Avast dev. This version is missing 2 functions
diff
score of 2 Tlsh hashes (https://github.com/avast/tlshc/issues/1)Describe the solution you'd like In https://github.com/VirusTotal/yara/blob/master/libyara/tlshc/tlsh.c, Yara can add
And then add a function in ELF module to compare hash (maybe create an other function to compare with diff_len)