Home GnuPG

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

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
rCc17f84bd02d7: rsa: Add verify after sign to avoid Lenstra's CRT attack.
Branches
Unknown
Tags
Unknown

Event Timeline

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