AES-NI/OCB: Use stack for temporary storage
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 27 Mar 2019 21:50:07 +0000 (23:50 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 27 Mar 2019 21:50:23 +0000 (23:50 +0200)
commitb82dbbedf027327e0b4444a01edb045f51c4152b
treedbd277f34e11eb26b4f02082774cad028c555777
parentcabeebfc1179c8f5982834a8cbce02c55b3468e2
AES-NI/OCB: Use stack for temporary storage

* cipher/rijndael-aesni.c (aesni_ocb_enc, aesni_ocb_dec): Use stack
allocated 'tmpbuf' instead of output buffer as temporary storage.
--

This change gives (very) small improvement for performance (~0.5%) when
output buffer is unaligned.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/rijndael-aesni.c