diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2007-11-06 22:01:20 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:06 +1100 |
commit | c9db6c1ced2e0508e76dd771b883fc02e42c5594 (patch) | |
tree | 8e0869724d5741f815c6431c27b72b51dc74888d /crypto/twofish_common.c | |
parent | 754f09a6827c1fe98d80b0b7cc4f011bbf2a9b95 (diff) | |
download | linux-crypto-c9db6c1ced2e0508e76dd771b883fc02e42c5594.tar.gz linux-crypto-c9db6c1ced2e0508e76dd771b883fc02e42c5594.zip |
[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>
Diffstat (limited to 'crypto/twofish_common.c')
0 files changed, 0 insertions, 0 deletions