Merge pull request #408 from Logan007/revPearson

added aes-ni support to Pearson hashing
This commit is contained in:
Luca Deri
2020-09-10 20:11:41 +02:00
committed by GitHub
2 changed files with 131 additions and 87 deletions
+12
View File
@@ -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);