Home GnuPG

AES-NI/OCB: Use stack for temporary storage

Description

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>

Details

Provenance
jukiviliAuthored on Mar 27 2019, 10:50 PM
Parents
rCcabeebfc1179: tests/basic: add large buffer testing for ciphers
Branches
Unknown
Tags
Unknown