Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 4 Jan 2013 14:22:52 +0100
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Supporting different hash algorithms with a single format?

2013/1/4 Frank Dittrich <frank_dittrich@...mail.com>:
> You can still implement both formats in the same file.
> More or less, you just need
> #define FORMAT_LABEL_0  "odf-sha1-bf"
> #define FORMAT_LABEL_1  "odf-sha256-aes"
> #define FORMAT_NAME_0   "ODF SHA-1 Blowfish"
> #define FORMAT_NAME_1   "ODF SHA-256 AES"
> ...
> static struct fmt_tests odf_tests_0[] = ...
> static struct fmt_tests odf_tests_1[] = ...
>
> valid_0() and valie_1(), which call the common valid() with an
> additional parameter, separate crypt_all_0() and crypt_all_1(),
>
> And finally, separate
> struct fmt_main odf_fmt_0 = { ...
> struct fmt_main odf_fmt_1 = { ...

Like we have in cuda raw-sha256.

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ