Make IV/buf in prov_cipher_ctx_st aligned
authorHongren (Zenithal) Zheng <i@zenithal.me>
Mon, 9 May 2022 11:42:39 +0000 (19:42 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 21 Nov 2022 09:49:52 +0000 (10:49 +0100)
commite12f0f11b3051e403736ea349aa47c3e5e7364d1
treefdc0f777eab58c07155420dc0c3009c1a7806f6e
parent5c03d5ddce0f3183a24868eb515bf615bc515314
Make IV/buf in prov_cipher_ctx_st aligned

Make IV/buf aligned will drastically improve performance
as some architecture performs badly on misaligned memory
access.

Ref to
https://gist.github.com/ZenithalHourlyRate/7b5175734f87acb73d0bbc53391d7140#file-2-openssl-long-md
Ref to
openssl#18197

Signed-off-by: Hongren (Zenithal) Zheng <i@zenithal.me>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18267)

(cherry picked from commit 2787a709c984d3884e1726383c2f2afca428d795)
providers/implementations/include/prov/ciphercommon.h