Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <68CAE0F3-62D1-45FD-B912-8C8FEF7FB2A9@gmail.com>
Date: Tue, 31 Jan 2012 20:47:39 +0100
From: Tevesz András <andras.tevesz@...il.com>
To: magnum <john.magnum@...hmail.com>
Cc: john-dev@...ts.openwall.com
Subject: Re: OpenCL support on OSX [was: john-users]


On 2012.01.31., at 20:23, magnum wrote:

> (Moved to dev list and cc András in case you're not a subscriber)
> 
> On 01/31/2012 12:26 PM, Tevesz András wrote:
>> I have some osx specific fixes to the john-1.7.9-jumbo-5-opencl-5.diff 
> ...
>> +macosx-x86-64-opencl:
>> +	$(LN) x86-64.h arch.h
>> +	@echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h
>> +	$(MAKE) $(PROJ) \
>> +		JOHN_OBJS="$(JOHN_OBJS) $(OCL_OBJS) c3_fmt.o x86-64.o sse-intrinsics.o" \
>> +		ASFLAGS="$(ASFLAGS) -m64 -DUNDERSCORES -DBSD -DALIGN_LOG" \
>> +		CFLAGS="$(CFLAGS) -m64  -I$(NVIDIA_CUDA)/include -I$(ATISTREAMSDKROOT)/include  -DBSD -DCL_VERSION_1_0" \
>> +		LDFLAGS="$(LDFLAGS) -m64 -L$(ATISTREAMSDKROOT)/lib/x86_64 -L$(NVIDIA_CUDA)/lib64 -framework OpenCL"
>> +	/bin/sh ./setup-opencl-stuff.sh
>> +
> 
> 
>> diff -ur b/john-1.7.9-jumbo-5/src/c3_fmt.c a/john-1.7.9-jumbo-5/src/c3_fmt.c
>> --- john-1.7.9-jumbo-5-opencl-5/src/c3_fmt.c	2011-12-15 22:38:19.000000000 +0100
>> +++ john-1.7.9-jumbo-5-opencl-5-macosx/src/c3_fmt.c	2012-01-31 11:59:54.000000000 +0100
>> @@ -193,7 +193,10 @@
>> 		return 1;
>> 	}
>> 
>> -	if (id != 10 && !ldr_in_pot)
>> +	if (id != 10)
>> +#ifdef HAVE_CRYPT
>> +	if (!ldr_in_pot)
>> +#endif
>> #ifdef HAVE_MPI
>> 	if (mpi_id == 0)
>> #endif
> 
> 
> I may be wrong but I think c3_fmt.o should be removed from the make
> target instead of this change in c3_fmt.c. Can you use --format:crypt at
> all with this build?
> 
> magnum
> 

No it cant be used. 
"./john --format=crypt --test
Unknown ciphertext format name requested”
The modification in the c3_fmt.c was only made to be able to compile the code. 
The original code was also compiled with this modul. 
But I think that -DHAVE_CRYPT is only enabled on linux platform.
In the loader.c:38 ldr_in_pot is also in ifdef HAVE_CRYPT and the loader.c is also not used on non linux platfroms then again its compiled.
As I see the moduls must be compiled but they are disabled with ifdef-s.

András
  

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.