Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 21 Nov 2011 14:59:23 +0100
From: Samuele Giovanni Tonon <>
Subject: best way to get ciphertext

i'm trying to add key comparison inside the opencl kernel code
trying to see if this add more speed to the process.

at the moment all the job is done inside crypt_all() in which
i set the salt, the list of cleartext password to hash, the output
buffer .

i tried also to pass to opencl kernel ciphertext password by calling
"binary", however with my great disappoint i'm not getting the password
but some random data.

i tried to print inside crypt_all and cmp_all binary value with a simple:

printf("cry %x %x %x %x %x \n ", ((ARCH_WORD_32 *)binary)[0],
((ARCH_WORD_32 *)binary)[1], ((ARCH_WORD_32 *)binary)[2], ((ARCH_WORD_32
*)binary)[3], ((ARCH_WORD_32 *)binary)[4]);

however while on cmp_all i get the right "numbers", on crypt_all
i get nothing valuable.

since it looks like binary is not available inside crypt_all
(because not yet setted?)  i'm wondering which is best to do to solve
the problem which in the end is quite simple:
is there a good way to crypt and compare at the same time using the same
function or shall i go with some nasty hacks ?
Has anyone found similar problem on other formats ?

Many thanks

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.