[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-105-g8650b6c
by Werner Koch
cvs at cvs.gnupg.org
Fri Mar 22 12:16:34 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via 8650b6ca7c77e477234f9a1586e6a86b1c79fff3 (commit)
via d0c8fda5af45354ac32928c9a01e688d6893599d (commit)
via 9f4df1612ae21a5ce70d98930cb194e5193f5e2d (commit)
from 2a1e03c5a481689c43d197dd8034a1d73de0a1a4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8650b6ca7c77e477234f9a1586e6a86b1c79fff3
Author: Werner Koch <wk at gnupg.org>
Date: Fri Mar 22 11:57:46 2013 +0100
Add DCO by Christian Grothoff
--
diff --git a/AUTHORS b/AUTHORS
index b1bad22..67c46d9 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,7 +1,7 @@
Library: Libgcrypt
Homepage: http://www.gnu.org/software/libgcrypt/
Maintainer: Werner Koch <wk at gnupg.org>
-Bug reports: <bug-libgcrypt at gnupg.org> or http://bugs.gnupg.org
+Bug reports: http://bugs.gnupg.org
Security related bug reports: <security at gnupg.org>
License (library): LGPLv2.1+
License (manual and tools): GPLv2+
@@ -107,12 +107,26 @@ ulm at gentoo.org
Authors with a DCO
==================
-DCO:2012-04-16:Tomáš Mráz <tm at t8m.info>
-DCO:2012-04-20:Rafaël Carré <funman at videolan.org>
-DCO:2012-11-14:Jussi Kivilinna <jussi.kivilinna at mbnet.fi>
-DCO:2012-12-05:Werner Koch <wk at gnupg.org>
-DCO:2012-12-14:Dmitry Kasatkin <dmitry.kasatkin at intel.com>
-DCO:2013-02-26:Christian Aistleitner <christian at quelltextlich.at>
+Christian Aistleitner <christian at quelltextlich.at>
+2013-02-26:20130226110144.GA12678 at quelltextlich.at:
+
+Christian Grothoff <christian at grothoff.org>
+2013-03-21:514B5D8A.6040705 at grothoff.org:
+
+Dmitry Kasatkin <dmitry.kasatkin at intel.com>
+2012-12-14:50CAE2DB.80302 at intel.com:
+
+Jussi Kivilinna <jussi.kivilinna at mbnet.fi>
+2012-11-15:20121115172331.150537dzb5i6jmy8 at www.dalek.fi:
+
+Rafaël Carré <funman at videolan.org>
+2012-04-20:4F91988B.1080502 at videolan.org:
+
+Tomáš Mráz <tm at t8m.info>
+2012-04-16:1334571250.5056.52.camel at vespa.frost.loc:
+
+Werner Koch <wk at gnupg.org>
+2012-12-05:87obi8u4h2.fsf at vigenere.g10code.de:
More credits
commit d0c8fda5af45354ac32928c9a01e688d6893599d
Author: Werner Koch <wk at gnupg.org>
Date: Fri Mar 22 11:44:15 2013 +0100
Replace deprecated AM_CONFIG_HEADER macro.
* configure.ac: s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/
diff --git a/configure.ac b/configure.ac
index 2050824..cebf4b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,8 +71,8 @@ PACKAGE=$PACKAGE_NAME
VERSION=$PACKAGE_VERSION
AC_CONFIG_SRCDIR([src/libgcrypt.vers])
-AM_INIT_AUTOMAKE([])
-AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE
+AC_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_LIBOBJ_DIR([compat])
AC_CANONICAL_HOST
commit 9f4df1612ae21a5ce70d98930cb194e5193f5e2d
Author: Werner Koch <wk at gnupg.org>
Date: Fri Mar 22 11:41:11 2013 +0100
Disable AES-NI support if as does not support SSSE3.
* configure.ac (HAVE_GCC_INLINE_ASM_SSSE3): New test.
(ENABLE_AESNI_SUPPORT): Do not define without SSSE3 support.
(HAVE_GCC_INLINE_ASM_SSSE3, ENABLE_AVX_SUPPORT): Split up detection
and definition.
--
For example the assembler of FreeBSD 7.3 does not know about pshufb
and thus rijndael.c can't be compiled without using
--disable-aesni-support. This check that the toolchain can use SSSE3
instructions before trying to build with AES_NI support.
diff --git a/configure.ac b/configure.ac
index 7504d76..2050824 100644
--- a/configure.ac
+++ b/configure.ac
@@ -541,10 +541,6 @@ AC_ARG_ENABLE(aesni-support,
[Disable support for the Intel AES-NI instructions]),
aesnisupport=$enableval,aesnisupport=yes)
AC_MSG_RESULT($aesnisupport)
-if test x"$aesnisupport" = xyes ; then
- AC_DEFINE(ENABLE_AESNI_SUPPORT, 1,
- [Enable support for Intel AES-NI instructions.])
-fi
# Implementation of the --disable-drng-support switch.
AC_MSG_CHECKING([whether DRNG support is requested])
@@ -852,6 +848,26 @@ fi
#
+# Check whether GCC inline assembler supports SSSE3 instructions
+# This is required for the AES-NI instructions.
+#
+AC_CACHE_CHECK([whether GCC inline assembler supports SSSE3 instructions],
+ [gcry_cv_gcc_inline_asm_ssse3],
+ [gcry_cv_gcc_inline_asm_ssse3=no
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+ [[static unsigned char be_mask[16] __attribute__ ((aligned (16))) =
+ { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
+ void a(void) {
+ __asm__("pshufb %[mask], %%xmm2\n\t"::[mask]"m"(*be_mask):);
+ }]])],
+ [gcry_cv_gcc_inline_asm_ssse3=yes])])
+if test "$gcry_cv_gcc_inline_asm_ssse3" = "yes" ; then
+ AC_DEFINE(HAVE_GCC_INLINE_ASM_SSSE3,1,
+ [Defined if inline assembler supports SSSE3 instructions])
+fi
+
+
+#
# Check whether GCC inline assembler supports AVX instructions
#
AC_CACHE_CHECK([whether GCC inline assembler supports AVX instructions],
@@ -865,15 +881,6 @@ AC_CACHE_CHECK([whether GCC inline assembler supports AVX instructions],
if test "$gcry_cv_gcc_inline_asm_avx" = "yes" ; then
AC_DEFINE(HAVE_GCC_INLINE_ASM_AVX,1,
[Defined if inline assembler supports AVX instructions])
-
- if test x"$avxsupport" = xyes ; then
- AC_DEFINE(ENABLE_AVX_SUPPORT,1,
- [Enable support for Intel AVX instructions.])
- fi
-else
- if test x"$avxsupport" = xyes ; then
- avxsupport="no (unsupported by compiler)"
- fi
fi
@@ -1113,6 +1120,30 @@ DATADIRNAME=$DATADIRNAME
#### Conclusion. ####
#####################
+# Check that requested feature can actually be used and define
+# ENABLE_foo_SUPPORT macros.
+
+if test x"$aesnisupport" = xyes ; then
+ if test "$gcry_cv_gcc_inline_asm_ssse3" != "yes" ; then
+ aesnisupport="no (unsupported by compiler)"
+ fi
+fi
+if test x"$avxsupport" = xyes ; then
+ if test "$gcry_cv_gcc_inline_asm_avx" != "yes" ; then
+ avxsupport="no (unsupported by compiler)"
+ fi
+fi
+
+if test x"$aesnisupport" = xyes ; then
+ AC_DEFINE(ENABLE_AESNI_SUPPORT, 1,
+ [Enable support for Intel AES-NI instructions.])
+fi
+if test x"$avxsupport" = xyes ; then
+ AC_DEFINE(ENABLE_AVX_SUPPORT,1,
+ [Enable support for Intel AVX instructions.])
+fi
+
+
# Define conditional sources and config.h symbols depending on the
# selected ciphers, pubkey-ciphers, digests and random modules.
-----------------------------------------------------------------------
Summary of changes:
AUTHORS | 28 ++++++++++++++++++++------
configure.ac | 61 +++++++++++++++++++++++++++++++++++++++++++--------------
2 files changed, 67 insertions(+), 22 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
More information about the Gnupg-commits
mailing list