|
|
Message-ID: <CANO7a6ynQvibi1S4+y64kacX4SYWf9XJcEyUkGpT01YXSZmVzw@mail.gmail.com>
Date: Wed, 20 Jun 2012 22:13:07 +0530
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-dev@...ts.openwall.com
Subject: handling different BINARY_SIZE values in a single format
Hi,
EPiServer format can crack both SHA1 and SHA256 hashes. However, the
BINARY_SIZE for both these types is different. How can I handle this
situation in cmp_* functions?
Currently, I have the following code which is valid for only SHA1 hashes.
static int cmp_one(void *binary, int index)
{
return !memcmp(binary, crypt_out[index], 20); /* BUG: lesser
of the two */
}
My proposal is to combine get_binary (standard JtR interface) with
cracked_array approach. Any thoughts?
--
Cheers,
Dhiru
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.