Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <231cae6ca860579155675dd09694d686@smtp.hushmail.com>
Date: Thu, 13 Aug 2015 19:53:48 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: episerver UTF-8

On 2015-08-13 19:50, magnum wrote:
> Each '€' results in three bytes of UTF-8. '€€€€€€€' is thus 21 bytes,
> and exceeds PLAINTEXT_LENGTH (which is given in bytes) while '€€€€€€' is
> 18 bytes and fits within it. So from the sound of it, your format is AOK.

I take that back.

> 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.

magnum

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.