w32: Fix alignment problem with AESNI on Windows >= 8
* cipher/cipher-selftest.c (_gcry_cipher_selftest_alloc_ctx): New. * cipher/rijndael.c (selftest_basic_128, selftest_basic_192) (selftest_basic_256): Allocate context on the heap.
The stack alignment on Windows changed and because ld seems to limit
stack variables to a 8 byte alignment (we request 16), we get bus
errors from the selftests if AESNI is in use.
- GnuPG-bug-id: T2085
- Signed-off-by: Werner Koch <wk@gnupg.org>