|
Message-Id: <1D5DBF2D-29A8-4F6E-8C77-A96CAF72F648@gmail.com> Date: Fri, 14 Aug 2015 08:35:57 +0800 From: Lei Zhang <zhanglei.april@...il.com> To: john-dev@...ts.openwall.com Subject: Re: episerver UTF-8 > On Aug 14, 2015, at 1:53 AM, magnum <john.magnum@...hmail.com> wrote: > >> BTW that's the reason for this, found in all FMT_UTF8 formats: >> >> if (pers_opts.target_enc == UTF_8) >> self->params.plaintext_length = MIN(125, 3 * PLAINTEXT_LENGTH); >> > > The above is what is missing. You need to add this to init() if it's not there. I think my patch commented it out since you didn't have FMT_UTF8 then. Yeah, I got your point. BTW, I think 3*PLAINTEXT_LENGTH means that we assume each UTF8 char to be no larger than 3 bytes. Is that assumption true? Or 4-byte UTF8 chars are too rare to be considered? And what does that 125 mean? Thanks, Lei
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.