Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 30 Sep 2012 01:02:36 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: Any secret to use a salt_hash function?

That looks right. In what way does it seem to be ignored?

magnum


On 30 Sep, 2012, at 1:00 , Claudio André <claudioandre.br@...il.com> wrote:

> 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.