|
Message-ID: <CABob6iq350e6Zdjr38jGa_=Ub1dUaHD=3Aw6ouO+eDQs6yM3Sg@mail.gmail.com> 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
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.