Home GnuPG

w32: Fix alignment problem with AESNI on Windows >= 8
9f32789ee81cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Sep 4 2015, 12:32 PM
Parents
rC842535b7ea0a: mpi: Support FreeBSD 10 or later.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC9f32789ee81c: w32: Fix alignment problem with AESNI on Windows >= 8 (authored by Werner Koch <wk@gnupg.org>).Sep 4 2015, 12:51 PM