-
Notifications
You must be signed in to change notification settings - Fork 1
/
smhasher-orton.patch
97 lines (95 loc) · 3.13 KB
/
smhasher-orton.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57b3116..5cb4250 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,6 +234,40 @@ add_library(SMHasherSupport
mum.cc
jody_hash32.c
jody_hash64.c
+ mrx_test32.c
+ mrx_hash32.c
+ mrx_test64.c
+ mrx_hash64.c
+ mlx_test.c
+ mlx_hash.c
+ mlx_test2.c
+ mlx_hash2.c
+ mlx_test3.c
+ mlx_hash3.c
+ spb_test.c
+ spb_hash.c
+ sse_test.c
+ sse_hash.c
+ sse_test2.c
+ sse_hash2.c
+ sse_test3.c
+ sse_hash3.c
+ clm_test.c
+ clm_hash.c
+ clm_test2.c
+ clm_hash2.c
+ avx_test.c
+ avx_hash.c
+ avx_test2.c
+ avx_hash2.c
+ avx_test3.c
+ avx_hash3.c
+ avx_test4.c
+ avx_hash4.c
+ aes_test.c
+ aes_hash.c
+ aes_test2.c
+ aes_hash2.c
)
add_executable(
diff --git a/main.cpp b/main.cpp
index 7d887a1..3de0809 100644
--- a/main.cpp
+++ b/main.cpp
@@ -15,6 +15,23 @@
#endif
#include "md5.h"
#include "siphash.h"
+#include "mrx_test32.h"
+#include "mrx_test64.h"
+#include "mlx_test.h"
+#include "mlx_test2.h"
+#include "mlx_test3.h"
+#include "spb_test.h"
+#include "sse_test.h"
+#include "sse_test2.h"
+#include "sse_test3.h"
+#include "clm_test.h"
+#include "clm_test2.h"
+#include "avx_test.h"
+#include "avx_test2.h"
+#include "avx_test3.h"
+#include "avx_test4.h"
+#include "aes_test.h"
+#include "aes_test2.h"
#include <stdio.h>
#include <time.h>
#include "VERSION.h"
@@ -468,6 +485,23 @@ HashInfo g_hashes[] =
{ "MUM", "github.com/vnmakarov/mum-hash",
64, 64, 64, 0x73F6BFD7,
NULL, mum_hash_with_state_test },
+ { "MRXHash32", "MRX Hash 32-bit", 32, 128, 32, 0x98468248, NULL, mrx_hash_32_test2 },
+ { "MRXHash64", "MRX Hash 64-bit", 64, 256, 64, 0x80FFB9F8, NULL, mrx_hash_64_test2 },
+ { "MLXHash", "MLX Hash 64-bit", 64, 256, 64, 0x69B66660, NULL, mlx_hash_test2 },
+ { "MLXHash2", "MLX Hash 2 256-bit", 64, 256, 256, 0xAEFC5675, NULL, mlx_hash2_test2 },
+ { "MLXHash3", "MLX Hash 3 128-bit", 64, 256, 128, 0x2171FE7E, NULL, mlx_hash3_test2 },
+ { "SPBHash", "SPB Hash 64-bit", 64, 256, 64, 0x6AC50942, NULL, spb_hash_test2 },
+ { "SSEHash", "SSE Hash 128-bit", 128, 512, 128, 0x0F8E10D3, NULL, sse_hash_test2 },
+ { "SSEHash2", "SSE Hash 2 128-bit", 128, 512, 128, 0x7B0ECE67, NULL, sse_hash2_test2 },
+ { "SSEHash3", "SSE Hash 3 128-bit", 128, 512, 128, 0x65D99344, NULL, sse_hash3_test2 },
+ { "CLMHash", "CLM Hash 128-bit", 128, 1024, 128, 0x5C31E850, NULL, clm_hash_test2 },
+ { "CLMHash2", "CLM Hash 1024-bit", 128, 1024, 1024, 0x00000000, NULL, clm_hash2_test2 },
+ { "AVXHash", "AVX Hash 128-bit", 256, 2048, 128, 0x28F92B45, NULL, avx_hash_test2 },
+ { "AVXHash2", "AVX Hash 2 128-bit", 256, 2048, 128, 0xD40344A8, NULL, avx_hash2_test2 },
+ { "AVXHash3", "AVX Hash 3 256-bit", 256, 2048, 256, 0x805211A1, NULL, avx_hash3_test2 },
+ { "AVXHash4", "AVX Hash 4 128-bit", 256, 2048, 128, 0x2E10E7A7, NULL, avx_hash4_test2 },
+ { "AESHash", "AES Hash 128-bit", 128, 1024, 128, 0x96326591, NULL, aes_hash_test2 },
+ { "AESHash2", "AES Hash 2 1024-bit", 128, 1024, 1024, 0x00000000, NULL, aes_hash2_test2 },
};
int g_hashes_sizeof= sizeof(g_hashes);