diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-04-29 18:18:07 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-01 19:12:08 +0300 |
commit | f701954555340a503f6e52cc18d58b0c515427b7 (patch) | |
tree | ee1a8274d76f4b3b3b3c5f93d625e862a011ed8e /cipher/cipher-internal.h | |
parent | e78560a4b717f7154f910a8ce4128de152f586da (diff) | |
download | libgcrypt-f701954555340a503f6e52cc18d58b0c515427b7.tar.gz |
Disable GCM and AES-NI assembly implementations for WIN64
* cipher/cipher-internal.h (GCM_USE_INTEL_PCLMUL): Do not enable when
__WIN64__ defined.
* cipher/rijndael-internal.h (USE_AESNI): Ditto.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/cipher-internal.h')
-rw-r--r-- | cipher/cipher-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/cipher-internal.h b/cipher/cipher-internal.h index e20ea562..693f2189 100644 --- a/cipher/cipher-internal.h +++ b/cipher/cipher-internal.h @@ -67,7 +67,9 @@ #if defined(ENABLE_PCLMUL_SUPPORT) && defined(GCM_USE_TABLES) # if ((defined(__i386__) && SIZEOF_UNSIGNED_LONG == 4) || defined(__x86_64__)) # if __GNUC__ >= 4 -# define GCM_USE_INTEL_PCLMUL 1 +# ifndef __WIN64__ +# define GCM_USE_INTEL_PCLMUL 1 +# endif # endif # endif #endif /* GCM_USE_INTEL_PCLMUL */ |