|
Message-ID: <50677DA1.6090504@gmail.com>
Date: Sat, 29 Sep 2012 20:00:49 -0300
From: Claudio André <claudioandre.br@...il.com>
To: john-dev@...ts.openwall.com
Subject: Any secret to use a salt_hash function?
Hi, is there any secret to use a salt_hash function?
The hash function returns something valid, but seems it is ignored. Any
flag to adjust?
Thanks.
Some code below:
-------------
static int salt_hash(void *salt) {
unsigned char *s = salt;
unsigned int hash = 5381;
unsigned int i;
for (i = 0; i < sizeof(sha512_salt); i++)
hash = ((hash << 5) + hash) ^ s[i];
return hash & (SALT_HASH_SIZE - 1);
}
AND
struct fmt_main fmt_opencl_cryptsha512 = {
...
binary_hash_6
},
salt_hash,
set_salt,
set_key,
Content of type "text/html" skipped
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.