diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-09 17:42:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-09 17:42:40 +0000 |
commit | 07451e8768fc3edaf3410b30cf43ad0a3da0e2d7 (patch) | |
tree | 439d1d7a67cea377e5ea440f7b6a439f03b7ffc6 /src | |
parent | 9a037c9aad08e0ecc7232b1879d5d80a34e55dba (diff) | |
download | rspamd-07451e8768fc3edaf3410b30cf43ad0a3da0e2d7.tar.gz rspamd-07451e8768fc3edaf3410b30cf43ad0a3da0e2d7.zip |
[Minor] Add t1ha to the list of the specific hashes
Diffstat (limited to 'src')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 2 | ||||
-rw-r--r-- | src/libcryptobox/cryptobox.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index c0f0eb65c..c4d20f9a4 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -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: diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index d2fcbf2d2..3ae7679d0 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -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 |