precompute bcrypt hashes
#11
Hi

I cant do it, I dont have the skills to do it. But thanks a ton for the recommendation this is most likely saving me a ton of time.

If someone wants to help me with it. Happy to send you more about the project in a dm.

Thanks
Reply
#12
Do you see a way to do it without the need of a modified kernel?

Thanks
Reply
#13
as said, for the basic testing and checking the (hexadecimal) digest, you could just add a printf ():
Code:
diff --git a/OpenCL/m03200-pure.cl b/OpenCL/m03200-pure.cl
index d4eaac06..bd0afdc2 100644
--- a/OpenCL/m03200-pure.cl
+++ b/OpenCL/m03200-pure.cl
@@ -846,6 +846,17 @@ KERNEL_FQ void FIXED_THREAD_COUNT(FIXED_LOCAL_SIZE) m03200_comp (KERN_ATTR_TMPS
   const u32 r2 = L0;
   const u32 r3 = R0;

+  L0 = BCRYPTM_4;
+  R0 = BCRYPTM_5;
+
+  for (u32 i = 0; i < 64; i++)
+  {
+    BF_ENCRYPT (L0, R0);
+  }
+
+  const u32 r4 = L0;
+  const u32 r5 = R0;
+
   /*
   e = L0;
   f = R0;
@@ -853,6 +864,8 @@ KERNEL_FQ void FIXED_THREAD_COUNT(FIXED_LOCAL_SIZE) m03200_comp (KERN_ATTR_TMPS
   f &= ~0xff; // its just 23 not 24 !
   */

+  printf ("%08x%08x%08x%08x%08x%06x\n", r0, r1, r2, r3, r4, r5 >> 8);
+
   #define il_pos 0

   #ifdef KERNEL_STATIC
Reply
#14
thanks will give it a try
Reply