Move macros DGST_R0 - DGST_R3 to host, define dgst_size for opencl kernel from host...
[hashcat.git] / OpenCL / m11800_a3.cl
index 4ef9bb0..dd3e7d4 100644 (file)
 //too much register pressure
 //#define NEW_SIMD_CODE
 
-#include "inc_hash_constants.h"
 #include "inc_vendor.cl"
-
-#define DGST_R0 0
-#define DGST_R1 1
-#define DGST_R2 2
-#define DGST_R3 3
-
+#include "inc_hash_constants.h"
 #include "inc_hash_functions.cl"
 #include "inc_types.cl"
 #include "inc_common.cl"
@@ -2248,22 +2242,19 @@ void streebog_g (u64x h[8], const u64x m[8], __local u64 (*s_sbob_sl64)[256])
   u64x s[8];
   u64x t[8];
 
-  #ifdef _unroll
-  #pragma unroll
-  #endif
   for (int i = 0; i < 8; i++)
   {
     t[i] = h[i];
   }
 
+  #ifdef _unroll
+  #pragma unroll
+  #endif
   for (int i = 0; i < 8; i++)
   {
     k[i] = SBOG_LPSti64;
   }
 
-  #ifdef _unroll
-  #pragma unroll
-  #endif
   for (int i = 0; i < 8; i++)
   {
     s[i] = m[i];
@@ -2271,9 +2262,6 @@ void streebog_g (u64x h[8], const u64x m[8], __local u64 (*s_sbob_sl64)[256])
 
   for (int r = 0; r < 12; r++)
   {
-    #ifdef _unroll
-    #pragma unroll
-    #endif
     for (int i = 0; i < 8; i++)
     {
       t[i] = s[i] ^ k[i];
@@ -2301,9 +2289,6 @@ void streebog_g (u64x h[8], const u64x m[8], __local u64 (*s_sbob_sl64)[256])
     }
   }
 
-  #ifdef _unroll
-  #pragma unroll
-  #endif
   for (int i = 0; i < 8; i++)
   {
     h[i] ^= s[i] ^ k[i] ^ m[i];