Browse Source

[Minor] Add t1ha to the list of the specific hashes

tags/1.5.0
Vsevolod Stakhov 7 years ago
parent
commit
07451e8768
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      src/libcryptobox/cryptobox.c
  2. 1
    0
      src/libcryptobox/cryptobox.h

+ 2
- 0
src/libcryptobox/cryptobox.c View File

@@ -1534,6 +1534,8 @@ rspamd_cryptobox_fast_hash_specific (
return XXH64 (data, len, seed);
case RSPAMD_CRYPTOBOX_MUMHASH:
return mum_hash (data, len, seed);
case RSPAMD_CRYPTOBOX_T1HA:
return t1ha (data, len, seed);
case RSPAMD_CRYPTOBOX_HASHFAST_INDEPENDENT:
return rspamd_cryptobox_fast_hash_indep (data, len, seed);
case RSPAMD_CRYPTOBOX_HASHFAST:

+ 1
- 0
src/libcryptobox/cryptobox.h View File

@@ -359,6 +359,7 @@ enum rspamd_cryptobox_fast_hash_type {
RSPAMD_CRYPTOBOX_XXHASH64 = 0,
RSPAMD_CRYPTOBOX_XXHASH32,
RSPAMD_CRYPTOBOX_MUMHASH,
RSPAMD_CRYPTOBOX_T1HA,
RSPAMD_CRYPTOBOX_METROHASH,
RSPAMD_CRYPTOBOX_HASHFAST,
RSPAMD_CRYPTOBOX_HASHFAST_INDEPENDENT

Loading…
Cancel
Save