aesni: Align all class instances to 16 byte boundaries
authorMartin Willi <martin@revosec.ch>
Tue, 31 Mar 2015 15:28:12 +0000 (17:28 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 11:44:40 +0000 (13:44 +0200)
commit93f0080265a700ab9060783807b53c39e1b536b1
tree2daadb40a348753d863e21b82478e2152d290649
parent0c83225883b46f8e6a17532374dc9211ece900a5
aesni: Align all class instances to 16 byte boundaries

While the required members are aligned in the struct as required, on 32-bit
platforms the allocator aligns the structures itself to 8 bytes only. This
results in non-aligned struct members, and invalid memory accesses.
src/libstrongswan/plugins/aesni/aesni_cbc.c
src/libstrongswan/plugins/aesni/aesni_ccm.c
src/libstrongswan/plugins/aesni/aesni_cmac.c
src/libstrongswan/plugins/aesni/aesni_ctr.c
src/libstrongswan/plugins/aesni/aesni_gcm.c
src/libstrongswan/plugins/aesni/aesni_key.c
src/libstrongswan/plugins/aesni/aesni_xcbc.c