File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ set(VERSION_PATCH 0)
61
61
62
62
# TLSH uses only half the counting buckets.
63
63
# It can use all the buckets now.
64
+ if (NOT TLSH_BUCKETS_48 AND NOT TLSH_BUCKETS_128 AND NOT TLSH_BUCKETS_256 )
64
65
set (TLSH_BUCKETS_128 1 )
66
+ endif ()
65
67
if (TLSH_BUCKETS_48 EQUAL 1 )
66
68
set (TLSH_HASH "min hash" )
67
69
add_definitions (-DBUCKETS_48 )
@@ -77,7 +79,9 @@ endif()
77
79
78
80
# TLSH uses 1 byte checksum. The collision rate is 1 in 24.
79
81
# It can use 3 bytes checksum now. That collision rate in 1 in 5800.
82
+ if (NOT TLSH_CHECKSUM_0B AND NOT TLSH_CHECKSUM_1B AND TLSH_CHECKSUM_3B )
80
83
set (TLSH_CHECKSUM_1B 1 )
84
+ endif ()
81
85
82
86
if (TLSH_CHECKSUM_0B EQUAL 1 )
83
87
set (TLSH_CHECKSUM "no checksum" )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class TlshImpl;
103
103
104
104
#if defined BUCKETS_48
105
105
// No 3 Byte checksum option for 48 Bucket min hash
106
- #define TLSH_STRING_LEN 30
106
+ #define TLSH_STRING_LEN_REQ 30
107
107
// changed the minimum data length to 256 for version 3.3
108
108
#define MIN_DATA_LENGTH 10
109
109
// added the -force option for version 3.5
You can’t perform that action at this time.
0 commit comments