[git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-50-gaada604

by Jussi Kivilinna cvs at cvs.gnupg.org
Wed Jan 4 11:20:22 CET 2017

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  aada604594fd42224d366d3cb98f67fd3b989cd6 (commit)
      from  98b49695b1ffe3c406ae39a45051b8594f903b9d (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 aada604594fd42224d366d3cb98f67fd3b989cd6
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date:   Wed Jan 4 12:02:36 2017 +0200

    rijndael-ssse3: fix counter operand from read-only to read/write
    * cipher/rijndael-ssse3-amd64.c (_gcry_aes_ssse3_ctr_enc): Change
    'ctrlow' operand from read-only to read-write.
    With read-only operand, compiler is allowed to pass temporary
    register to assembly block and throw away any calculation that
    have been done on that register. On the other hand, compiler is
    also allowed to keep operand value permanently in one register
    as value is treated as read-only, and effectly operates as
    expected. Selection between these two depends on compiler
    version and used flags.
    Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>

diff --git a/cipher/rijndael-ssse3-amd64.c b/cipher/rijndael-ssse3-amd64.c
index a8e89d4..2adb73f 100644
--- a/cipher/rijndael-ssse3-amd64.c
+++ b/cipher/rijndael-ssse3-amd64.c
@@ -387,8 +387,8 @@ _gcry_aes_ssse3_ctr_enc (RIJNDAEL_context *ctx, unsigned char *outbuf,
                     "pshufb %%xmm6, %%xmm7\n\t"
-                    :
-                    : [ctr] "r" (ctr), [ctrlow] "r" (ctrlow)
+                    : [ctrlow] "+r" (ctrlow)
+                    : [ctr] "r" (ctr)
                     : "cc", "memory");
       do_vpaes_ssse3_enc (ctx, nrounds, aes_const_ptr);


Summary of changes:
 cipher/rijndael-ssse3-amd64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

The GNU crypto library

Gnupg-commits mailing list
Gnupg-commits at gnupg.org

More information about the Gcrypt-devel mailing list