Camellia: Tweaks for AES-NI implementations
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 24 Nov 2013 15:54:15 +0000 (17:54 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 24 Nov 2013 15:54:15 +0000 (17:54 +0200)
commit3ef21e7e1b8003db9792155044db95f9d9ced184
tree2202296bbc1176ec2a8c6502e5be75c847dcb6c2
parenta34448c929b13bfb7b66d69169c89e7319a18b31
Camellia: Tweaks for AES-NI implementations

* cipher/camellia-aesni-avx-amd64.S: Align stack to 16 bytes; tweak
key-setup for small speed up.
* cipher/camellia-aesni-avx2-amd64.S: Use vmovdqu even with aligned
stack; reorder vinsert128 instructions; use rbp for stack frame.
--

Use of 'vmovdqa' with ymm registers produces quite interesting scattering in
measurement timings. By using 'vmovdqu' instead, repeated measuments produce
more stable results.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/camellia-aesni-avx-amd64.S
cipher/camellia-aesni-avx2-amd64.S