]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] camellia: Code cleanup
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Nov 2007 14:01:20 +0000 (22:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:06 +0000 (08:16 +1100)
commit9748f5e537cd7cd0021c997a9f38ac05e026cfb7
tree077c9b6469a106e9077fdf0d0d5a48377c19b859
parent52be51e984a9dfd08b8a7afa48ac1975f11f6a18
[CRYPTO] camellia: Code cleanup

Move code blocks around so that related pieces are closer together:
e.g. CAMELLIA_ROUNDSM macro does not need to be separated
from the rest of the code by huge array of constants.

Remove unused macros (COPY4WORD, SWAP4WORD, XOR4WORD[2])

Drop SUBL(), SUBR() macros which only obscure things.
Same for CAMELLIA_SP1110() macro and KEY_TABLE_TYPE typedef.

Remove useless comments:
/* encryption */ -- well it's obvious enough already!
void camellia_encrypt128(...)

Combine swap with copying at the beginning/end of encrypt/decrypt.

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