From 07451e8768fc3edaf3410b30cf43ad0a3da0e2d7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 9 Jan 2017 17:42:40 +0000 Subject: [Minor] Add t1ha to the list of the specific hashes --- src/libcryptobox/cryptobox.c | 2 ++ src/libcryptobox/cryptobox.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/libcryptobox') 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 -- cgit v1.2.3