Added SIMD code for WPA/WPA2
This commit is contained in:
@@ -137,6 +137,15 @@
|
||||
#define SHA1_F2o(x,y,z) (SHA1_F2 ((x), (y), (z)))
|
||||
#endif
|
||||
|
||||
#define SHA1_STEP_S(f,a,b,c,d,e,x) \
|
||||
{ \
|
||||
e += K; \
|
||||
e += x; \
|
||||
e += f (b, c, d); \
|
||||
e += rotl32_S (a, 5u); \
|
||||
b = rotl32_S (b, 30u); \
|
||||
}
|
||||
|
||||
#define SHA1_STEP(f,a,b,c,d,e,x) \
|
||||
{ \
|
||||
e += K; \
|
||||
|
||||
+18
-1
@@ -29,8 +29,25 @@
|
||||
|
||||
#if VENDOR_ID == (1 << 0)
|
||||
#define IS_AMD
|
||||
#elif VENDOR_ID == (1 << 6)
|
||||
//#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 1)
|
||||
#define IS_APPLE
|
||||
#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 2)
|
||||
#define IS_INTEL_BEIGNET
|
||||
#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 3)
|
||||
#define IS_INTEL_SDK
|
||||
#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 4)
|
||||
#define IS_MESA
|
||||
#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 5)
|
||||
#define IS_NV
|
||||
//#define IS_GENERIC
|
||||
#elif VENDOR_ID == (1 << 6)
|
||||
#define IS_POCL
|
||||
#define IS_GENERIC
|
||||
#else
|
||||
#define IS_GENERIC
|
||||
#endif
|
||||
|
||||
+4
-5
@@ -135,7 +135,7 @@ static inline int CPU_ISSET (int num, cpu_set_t *cs) { return (cs->count & (1 <
|
||||
#define CL_VENDOR_AMD "Advanced Micro Devices, Inc."
|
||||
#define CL_VENDOR_APPLE "Apple"
|
||||
#define CL_VENDOR_INTEL_BEIGNET "Intel"
|
||||
#define CL_VENDOR_INTEL_SDK "Intel(R) OpenCL"
|
||||
#define CL_VENDOR_INTEL_SDK "Intel(R) Corporation"
|
||||
#define CL_VENDOR_MESA "Mesa"
|
||||
#define CL_VENDOR_NV "NVIDIA Corporation"
|
||||
#define CL_VENDOR_POCL "The pocl project"
|
||||
@@ -144,10 +144,9 @@ static inline int CPU_ISSET (int num, cpu_set_t *cs) { return (cs->count & (1 <
|
||||
#define VENDOR_ID_APPLE (1 << 1)
|
||||
#define VENDOR_ID_INTEL_BEIGNET (1 << 2)
|
||||
#define VENDOR_ID_INTEL_SDK (1 << 3)
|
||||
#define VENDOR_ID INTEL (1 << 4)
|
||||
#define VENDOR_ID_MESA (1 << 5)
|
||||
#define VENDOR_ID_NV (1 << 6)
|
||||
#define VENDOR_ID_POCL (1 << 7)
|
||||
#define VENDOR_ID_MESA (1 << 4)
|
||||
#define VENDOR_ID_NV (1 << 5)
|
||||
#define VENDOR_ID_POCL (1 << 6)
|
||||
#define VENDOR_ID_GENERIC (1 << 31)
|
||||
|
||||
#define BLOCK_SIZE 64
|
||||
|
||||
Reference in New Issue
Block a user