diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-03-03 13:59:00 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-03-14 17:25:54 +0800 |
commit | 01d9b4f9432fef14db190ff4871697dbc1e9e5b9 (patch) | |
tree | 2b9f209faa4342fa52efd1f85f3320ea8a8aa4af /crypto/tcrypt.c | |
parent | bb31abc8b5dff48cf17dcb22646aa762d9b1dd4a (diff) | |
download | linux-crypto-01d9b4f9432fef14db190ff4871697dbc1e9e5b9.tar.gz linux-crypto-01d9b4f9432fef14db190ff4871697dbc1e9e5b9.zip |
crypto: camellia - simplify key setup and CAMELLIA_ROUNDSM macro
camellia_setup_tail() applies 'inverse of the last half of P-function' to
subkeys, which is unneeded if keys are applied directly to yl/yr in
CAMELLIA_ROUNDSM.
Patch speeds up key setup and should speed up CAMELLIA_ROUNDSM as applying
key to yl/yr early has less register dependencies.
Quick tcrypt camellia results:
x86_64, AMD Phenom II, ~5% faster
x86_64, Intel Core 2, ~0.5% faster
i386, Intel Atom N270, ~1% faster
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions