modes/ocb128.c: fix misaligned access in ILP32 builds on 64-bit processors.
authorAndy Polyakov <appro@openssl.org>
Mon, 20 Mar 2017 11:47:08 +0000 (12:47 +0100)
committerAndy Polyakov <appro@openssl.org>
Wed, 22 Mar 2017 10:10:17 +0000 (11:10 +0100)
commit1371be1500a218d26c19c2f61239a5e0262cbf4f
treedc778d0bba0f5053bf09733d31eb94de346c6514
parent09de9f0435790eefc082253609c8ef0ed66f8233
modes/ocb128.c: fix misaligned access in ILP32 builds on 64-bit processors.

One could have fixed the problem by arranging 64-bit alignment of
EVP_AES_OCB_CTX.aad_buf in evp/e_aes.c, but CRYPTO_ocb128_aad
prototype doesn't imply alignment and we have to honour it.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2994)

(cherry picked from commit a2bb183623dac253792753b82e291fd1d180aa78)
crypto/modes/ocb128.c