|
Message-ID: <20150504153347.GA6024@openwall.com> Date: Mon, 4 May 2015 18:33:48 +0300 From: Aleksey Cherepanov <lyosha@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: Generic parsing functions -- prototype On Mon, Mar 30, 2015 at 02:29:46AM +0300, Alexander Cherepanov wrote: > - hex. Do we need variants for lower- and upper-case? >From formats.h: /* Splits a ciphertext into several pieces and returns the piece with given * index, starting from 0 (will usually return the ciphertext unchanged). * For hex-encoded hashes which are compared by the target system/application * irrespective of the case of characters (upper/lower/mixed) used in their * encoding, split() must unify the case (e.g., convert to all-lowercase) * and FMT_SPLIT_UNIFIES_CASE must be set. */ char *(*split)(char *ciphertext, int index, struct fmt_main *self); For example, raw-sha512 reads hex in any case and makes lower case in split(). Flags in fmt_main of raw-sha512: FMT_CASE | FMT_8_BIT | FMT_OMP | FMT_SPLIT_UNIFIES_CASE, Thanks! -- Regards, Aleksey Cherepanov
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.