diff -urp john-1.7.6-sha256cuda-1/src/cuda/sha256.cu john-1.7.6-sha256cuda-1mod/src/cuda/sha256.cu --- john-1.7.6-sha256cuda-1/src/cuda/sha256.cu 2011-04-11 19:37:33.000000000 +0000 +++ john-1.7.6-sha256cuda-1mod/src/cuda/sha256.cu 2011-04-11 21:42:30.000000000 +0000 @@ -90,7 +90,9 @@ __global__ void kernel_sha256(sha256_pas h=g;g=f;f=e;e=d+t1;d=c;c=b;b=a;a=t1+t2; } out->v[0]=a+_h[0];out->v[1]=b+_h[1]; +/* out->v[2]=c+_h[2];out->v[3]=d+_h[3]; out->v[4]=e+_h[4];out->v[5]=f+_h[5]; out->v[6]=g+_h[6];out->v[7]=h+_h[7]; +*/ } diff -urp john-1.7.6-sha256cuda-1/src/Makefile john-1.7.6-sha256cuda-1mod/src/Makefile --- john-1.7.6-sha256cuda-1/src/Makefile 2011-04-11 23:03:42.000000000 +0000 +++ john-1.7.6-sha256cuda-1mod/src/Makefile 2011-04-11 21:38:41.000000000 +0000 @@ -21,7 +21,8 @@ OMPFLAGS = #OMPFLAGS = -xopenmp NVCCFLAGS = -c --maxrregcount 14 -Xptxas -v CUDAPATH = /usr/local/cuda/lib -CUDA64PATH = /usr/local/cuda/lib64 +#CUDA64PATH = /usr/local/cuda/lib64 +CUDA64PATH = /usr/lib64/cuda32 CUDALIB=$(CUDAPATH) CFLAGS = -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS) ASFLAGS = -c $(OMPFLAGS) diff -urp john-1.7.6-sha256cuda-1/src/sha256cuda_fmt.c john-1.7.6-sha256cuda-1mod/src/sha256cuda_fmt.c --- john-1.7.6-sha256cuda-1/src/sha256cuda_fmt.c 2011-04-11 19:40:51.000000000 +0000 +++ john-1.7.6-sha256cuda-1mod/src/sha256cuda_fmt.c 2011-04-11 21:43:07.000000000 +0000 @@ -167,7 +167,7 @@ static int cmp_all(void *binary,int coun static int cmp_one(void *binary,int index){ int i; uint32_t *t=(uint32_t *)binary; - for(i=0;i<8;i++) + for(i=0;i<2;i++) if(t[i]!=outbuffer[index].v[i]) return 0; return 1; diff -urp john-1.7.6-sha256cuda-1/src/sha256.h john-1.7.6-sha256cuda-1mod/src/sha256.h --- john-1.7.6-sha256cuda-1/src/sha256.h 2011-04-11 19:08:31.000000000 +0000 +++ john-1.7.6-sha256cuda-1mod/src/sha256.h 2011-04-11 21:47:05.000000000 +0000 @@ -16,7 +16,8 @@ //#define KEYS_PER_CRYPT 65536 ///256 blocks * 256 threads todo - auto detection #define THREADS 128 -#define BLOCKS 4096 +//#define BLOCKS 4096 +#define BLOCKS 16384 #define KEYS_PER_CRYPT THREADS*BLOCKS typedef struct{ @@ -24,7 +25,7 @@ typedef struct{ }sha256_password; typedef struct{ - uint32_t v[8]; ///256bit + uint32_t v[2]; ///64-bit }sha256_hash; const uint32_t host_h[]={