[CRYPTO] camellia: Code cleanup
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Nov 2007 14:05:36 +0000 (22:05 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:07 +0000 (08:16 +1100)
commit3a5e5f8108fe440657e8041afd973d2fe72180bb
tree3038a3aef4b3d75f02636eae7f7a47f29bebaa90
parent1721a81256ed7f7bfdd1a721f3a6c9c85efeac53
[CRYPTO] camellia: Code cleanup

Rename some macros to shorter names: CAMELLIA_RR8 -> ROR8,
making it easier to understand that it is just a right rotation,
nothing camellia-specific in it.
CAMELLIA_SUBKEY_L() -> SUBKEY_L() - just shorter.

Move be32 <-> cpu conversions out of en/decrypt128/256 and into
camellia_en/decrypt - no reason to have that code duplicated twice.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Acked-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/camellia.c