>> Thu, 25 Oct 2007 12:48:29 +0100
>> [Subject: [PATCH 5/5] camellia: de-unrolling, 64bit-ization]
>> Denys Vlasenko <[EMAIL PROTECTED]> wrote...

> On Thursday 25 October 2007 12:43, Denys Vlasenko wrote:
> > Hi Hervert,
> > 
> > Please review and maybe propagate upstream following patches.
> > 
> > camellia5.diff
> >     Use alternative key setup implementation with mostly 64-bit ops
> >     if BITS_PER_LONG >= 64. Both much smaller and much faster.
> > 
> >     Unify camellia_en/decrypt128/256 into camellia_do_en/decrypt.
> >     Code was similar, with just one additional if() we can use came code.
> > 
> >     If CONFIG_CC_OPTIMIZE_FOR_SIZE is defined,
> >     use loop in camellia_do_en/decrypt instead of unrolled code.
> >     ~5% encrypt/decrypt slowdown.
> > 
> >     Replace (x & 0xff) with (u8)x, gcc is not smart enough to realize
> >     that it can do (x & 0xff) this way (which is smaller at least on i386).
> > 
> >     Don't do (x & 0xff) in a few places where x cannot be > 255 anyway:
> >         t0 = il >> 16; v = camellia_sp0222[(t1 >> 8) & 0xff];
> >     il16 is u32, (thus t1 >> 8) is one byte!
> 
> Signed-off-by: Denys Vlasenko <[EMAIL PROTECTED]>
> --
> vda
Acked-by: Noriaki TAKAMIYA <[EMAIL PROTECTED]>

--
Noriaki TAKAMIYA
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to