From wk at gnupg.org Tue Feb 19 11:24:02 2013 From: wk at gnupg.org (Werner Koch) Date: Tue, 19 Feb 2013 11:24:02 +0100 Subject: [PATCH 1/3] Camellia, prepare glue code for AES-NI/AVX implementation In-Reply-To: <20130123095503.25542.91470.stgit@localhost6.localdomain6> (Jussi Kivilinna's message of "Wed, 23 Jan 2013 11:55:03 +0200") References: <20130123095503.25542.91470.stgit@localhost6.localdomain6> Message-ID: <8738wsk3el.fsf@vigenere.g10code.de> Hi, I just pushed all parts with a minor comment edit. I have not yet tested the new hardware feature, though. Thanks, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. From wk at gnupg.org Tue Feb 19 11:28:46 2013 From: wk at gnupg.org (Werner Koch) Date: Tue, 19 Feb 2013 11:28:46 +0100 Subject: [PATCH] Rinjdael: Fix use of SSE2 outside USE_AESNI/ctx->use_aesni In-Reply-To: <20130128091133.14478.19078.stgit@localhost6.localdomain6> (Jussi Kivilinna's message of "Mon, 28 Jan 2013 11:11:33 +0200") References: <20130128091133.14478.19078.stgit@localhost6.localdomain6> Message-ID: <87y5ekiom9.fsf@vigenere.g10code.de> Pushed. Thanks. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. From wk at gnupg.org Tue Feb 19 11:51:21 2013 From: wk at gnupg.org (Werner Koch) Date: Tue, 19 Feb 2013 11:51:21 +0100 Subject: [PATCH] libgcrypt-1.5: rinjdael: Fix use of SSE2 outside USE_AESNI/ctx->use_aesni In-Reply-To: <20130129080515.18482.19974.stgit@localhost6.localdomain6> (Jussi Kivilinna's message of "Tue, 29 Jan 2013 10:05:15 +0200") References: <20130129080515.18482.19974.stgit@localhost6.localdomain6> Message-ID: <87r4kcinkm.fsf@vigenere.g10code.de> On Tue, 29 Jan 2013 09:05, jussi.kivilinna at mbnet.fi said: > * cipher/rijndael.c (_gcry_aes_cbc_enc, _gcry_aes_cbc_dec): Check if > AES-NI is enabled before calling aesni_prepare() and aesni_cleanup(). Pushed. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. From christian at quelltextlich.at Tue Feb 26 12:02:05 2013 From: christian at quelltextlich.at (Christian Aistleitner) Date: Tue, 26 Feb 2013 12:02:05 +0100 Subject: [PATCH] Fix --with-{lib,}gpg-error-prefix. Message-ID: <20130226110205.GA22379@quelltextlich.at> * m4/gpg-error.m4: Update from current libgpg-error git. Signed-off-by: Christian Aistleitner --- m4/gpg-error.m4 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/m4/gpg-error.m4 b/m4/gpg-error.m4 index eb5d7c4..feb963c 100644 --- a/m4/gpg-error.m4 +++ b/m4/gpg-error.m4 @@ -1,5 +1,5 @@ # gpg-error.m4 - autoconf macro to detect libgpg-error. -# Copyright (C) 2002, 2003, 2004 g10 Code GmbH +# Copyright (C) 2002, 2003, 2004, 2011 g10 Code GmbH # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -14,20 +14,21 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) dnl Test for libgpg-error and define GPG_ERROR_CFLAGS and GPG_ERROR_LIBS dnl AC_DEFUN([AM_PATH_GPG_ERROR], -[ +[ AC_REQUIRE([AC_CANONICAL_HOST]) + gpg_error_config_prefix="" dnl --with-libgpg-error-prefix=PFX is the preferred name for this option, dnl since that is consistent with how our three siblings use the directory/ dnl package name in --with-$dir_name-prefix=PFX. AC_ARG_WITH(libgpg-error-prefix, - AC_HELP_STRING([--with-libgpg-error-prefix=PFX], - [prefix where GPG Error is installed (optional)]), - gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + AC_HELP_STRING([--with-libgpg-error-prefix=PFX], + [prefix where GPG Error is installed (optional)]), + [gpg_error_config_prefix="$withval"]) dnl Accept --with-gpg-error-prefix and make it work the same as dnl --with-libgpg-error-prefix above, for backwards compatibility, dnl but do not document this old, inconsistently-named option. AC_ARG_WITH(gpg-error-prefix,, - gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + [gpg_error_config_prefix="$withval"]) if test x$gpg_error_config_prefix != x ; then if test x${GPG_ERROR_CONFIG+set} != xset ; then @@ -39,7 +40,8 @@ AC_DEFUN([AM_PATH_GPG_ERROR], min_gpg_error_version=ifelse([$1], ,0.0,$1) AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version) ok=no - if test "$GPG_ERROR_CONFIG" != "no" ; then + if test "$GPG_ERROR_CONFIG" != "no" \ + && test -f "$GPG_ERROR_CONFIG" ; then req_major=`echo $min_gpg_error_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` req_minor=`echo $min_gpg_error_version | \ @@ -64,10 +66,9 @@ AC_DEFUN([AM_PATH_GPG_ERROR], GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs` AC_MSG_RESULT([yes ($gpg_error_config_version)]) ifelse([$2], , :, [$2]) - if test x"$host" != x ; then - gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none` - if test x"$gpg_error_config_host" != xnone ; then - if test x"$gpg_error_config_host" != x"$host" ; then + gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none` + if test x"$gpg_error_config_host" != xnone ; then + if test x"$gpg_error_config_host" != x"$host" ; then AC_MSG_WARN([[ *** *** The config script $GPG_ERROR_CONFIG was @@ -76,7 +77,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR], *** You may want to use the configure option --with-gpg-error-prefix *** to specify a matching config script. ***]]) - fi fi fi else -- 1.8.1 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: Digital signature URL: From christian at quelltextlich.at Tue Feb 26 12:01:44 2013 From: christian at quelltextlich.at (Christian Aistleitner) Date: Tue, 26 Feb 2013 12:01:44 +0100 Subject: DCO for Christian Aistleitner Message-ID: <20130226110144.GA12678@quelltextlich.at> Hello, Do we need the DCO also for minor contributions like copying over gpg-error.m4 over from libgpg-error? Here is nonetheless my DCO to avoid confusion. Best regards, Christian -- ---- quelltextlich e.U. ---- \\ ---- Christian Aistleitner ---- Companies' registry: 360296y in Linz Christian Aistleitner Gruendbergstrasze 65a Email: christian at quelltextlich.at 4040 Linz, Austria Phone: +43 732 / 26 95 63 Fax: +43 732 / 26 95 63 Homepage: http://quelltextlich.at/ --------------------------------------------------------------- -------------- next part -------------- Libgcrypt Developer's Certificate of Origin. Version 1.0 ========================================================= By making a contribution to the Libgcrypt project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the free software license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate free software license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same free software license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the free software license(s) involved. Signed-off-by: Christian Aistleitner -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: Digital signature URL: From linux at paip.net Thu Feb 28 00:12:08 2013 From: linux at paip.net (Ian Goldberg) Date: Wed, 27 Feb 2013 18:12:08 -0500 Subject: MD5-HMAC 2x as slow after call to gcry_create_nonce Message-ID: <20130227231208.GU21743@thunk.cs.uwaterloo.ca> This is odd. It appears that if we call gcry_create_nonce in our program, subsequent calls to MD5-HMAC are about 2.5x as slow as when we don't. The source for a test program is attached. The second argument controls whether a call to gcry_create_nonce is done before the timing loop begins. [The raw speeds are slow because I ran it on a netbook, but the 2.5x difference is bizarre to me.] $ gcc -Wall -o hmac_speed hmac_speed.c -lgcrypt $ ./hmac_speed 100000 0 * Test gcrypt for 100000 trials: 1235895 us $ ./hmac_speed 100000 0 * Test gcrypt for 100000 trials: 1232025 us $ ./hmac_speed 100000 0 * Test gcrypt for 100000 trials: 1210038 us $ ./hmac_speed 100000 1 * Test gcrypt for 100000 trials: 3180297 us $ ./hmac_speed 100000 1 * Test gcrypt for 100000 trials: 3187211 us $ ./hmac_speed 100000 1 * Test gcrypt for 100000 trials: 3207117 us Any thoughts? Thanks, - Ian -------------- next part -------------- A non-text attachment was scrubbed... Name: hmac_speed.c Type: text/x-csrc Size: 1729 bytes Desc: not available URL: