Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 10 Jun 2013 02:53:54 +0200
From: Lukas Odzioba <>
Subject: Re: popular binary_hash_*

2013/6/10 Lukas Odzioba <>:
> Name fmt_default_binary_hash_N(void * binary) is ok?

I assumed that and fixed opencl_*_fmt.c files.

Also I changed labels for Keccak:
-#define FORMAT_LABEL		"raw-keccak-256"
+#define FORMAT_LABEL		"Raw-Keccak-256"
-#define FORMAT_LABEL		"raw-keccak"
+#define FORMAT_LABEL		"Raw-Keccak"

This is what's left:
./opencl_nt_fmt.c:static int binary_hash_6(void *binary) { return
((unsigned int *)binary)[1] & 0x7FFFFFF; }
./opencl_xsha512_fmt.c:static int binary_hash_6(void *binary) { return
*((ARCH_WORD_32 *) binary + 6) & 0x7FFFFFF; }
./opencl_rawsha512_fmt.c:static int binary_hash_6(void *binary) return
*((ARCH_WORD_32 *)binary+6) & 0x7FFFFFF; }

Some of the formats had debug info inside binary_hash_0 function, I
left them as is.

Patch attached,

Download attachment "common_binary_hash_N_for_opencl.diff" of type "application/octet-stream" (36329 bytes)

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.