mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
Merge pull request #408 from Logan007/revPearson
added aes-ni support to Pearson hashing
This commit is contained in:
@@ -16,6 +16,18 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#if defined (__SSSE3__) && defined (__AES__) // AES-NI & SSSE3 -----------------------------
|
||||
|
||||
#include <immintrin.h>
|
||||
|
||||
#endif // AES-NI & SSSE3 -------------------------------------------------------------------
|
||||
|
||||
|
||||
void pearson_hash_256 (uint8_t *out, const uint8_t *in, size_t len);
|
||||
|
||||
void pearson_hash_128 (uint8_t *out, const uint8_t *in, size_t len);
|
||||
|
||||
Reference in New Issue
Block a user