]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add t1ha to the list of the specific hashes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jan 2017 17:42:40 +0000 (17:42 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jan 2017 17:42:40 +0000 (17:42 +0000)
src/libcryptobox/cryptobox.c
src/libcryptobox/cryptobox.h

index c0f0eb65caa045b0334317e0fdd6aa0c2688c7c2..c4d20f9a43e620022a49d070da40378c5c9c1684 100644 (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:
index d2fcbf2d287bc1d96dd402f6752aef11a8835d39..3ae7679d03a1d5803e5f50a639e7f275c7f0fff6 100644 (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