Fix segv with AES-NI on some platforms.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 09:35:28 +0000 (10:35 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 09:35:28 +0000 (10:35 +0100)
commita96974de734beb51a733a89b3283bcf7b433b54c
treeed1584ed59598019deab44aa2a6514b3e9aabff5
parent4b18e530f417d4af401a3fd721ad2a07e5310e3e
Fix segv with AES-NI on some platforms.

* cipher/rijndael.c (RIJNDAEL_context): Align on 16 bytes.
--

The trigger for this problem is the allocation of the context in the
selftest functions.  The other code paths use a 16 byte alignment
anyway by means of the allocation of the context in cipher.c
Thanks to Gentoo hacker Joakim Tjernlund for figuring out the reason
of this problem.

GnuPG-bug-id: 1452
cipher/rijndael.c