[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-443-gffd9b2a

by Jussi Kivilinna cvs at cvs.gnupg.org
Sat Dec 14 10:35:06 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  ffd9b2aa5abda7f4d7790ed48116ed5d71ab9995 (commit)
      from  c86c35534a153b13e880d0bb0ea3e48e1c0ecaf9 (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 ffd9b2aa5abda7f4d7790ed48116ed5d71ab9995
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date:   Sat Dec 14 11:23:03 2013 +0200

    Minor fixes to SHA assembly implementations
    
    * cipher/Makefile.am: Correct 'sha256-avx*.S' to 'sha512-avx*.S'.
    * cipher/sha1-ssse3-amd64.S: First line, correct filename.
    * cipher/sha256-ssse3-amd64.S: Return correct stack burn depth.
    * cipher/sha512-avx-amd64.S: Use 'vzeroall' to clear registers.
    * cipher/sha512-avx2-bmi2-amd64.S: Ditto and return correct stack burn
    depth.
    --
    
    Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>

diff --git a/cipher/Makefile.am b/cipher/Makefile.am
index 7d737e2..a1718c5 100644
--- a/cipher/Makefile.am
+++ b/cipher/Makefile.am
@@ -78,8 +78,9 @@ scrypt.c \
 seed.c \
 serpent.c serpent-sse2-amd64.S serpent-avx2-amd64.S \
 sha1.c sha1-ssse3-amd64.S \
-sha256.c sha256-ssse3-amd64.S sha256-avx-amd64.S sha256-avx2-bmi2-amd64.S \
-sha512.c sha512-ssse3-amd64.S sha512-armv7-neon.S \
+sha256.c sha256-ssse3-amd64.S \
+sha512.c sha512-ssse3-amd64.S sha512-avx-amd64.S sha512-avx2-bmi2-amd64.S \
+  sha512-armv7-neon.S \
 stribog.c \
 tiger.c \
 whirlpool.c \
diff --git a/cipher/sha1-ssse3-amd64.S b/cipher/sha1-ssse3-amd64.S
index cf8c079..5e5716b 100644
--- a/cipher/sha1-ssse3-amd64.S
+++ b/cipher/sha1-ssse3-amd64.S
@@ -1,4 +1,4 @@
-/* sha1-ssse3-amd64.c - Intel SSSE3 accelerated SHA-1 transform function
+/* sha1-ssse3-amd64.S - Intel SSSE3 accelerated SHA-1 transform function
  * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna at iki.fi>
  *
  * Based on sha1.c:
diff --git a/cipher/sha256-ssse3-amd64.S b/cipher/sha256-ssse3-amd64.S
index bcf0e19..9b27f8f 100644
--- a/cipher/sha256-ssse3-amd64.S
+++ b/cipher/sha256-ssse3-amd64.S
@@ -504,7 +504,7 @@ _gcry_sha256_transform_amd64_ssse3:
 	pop	rbp
 	pop	rbx
 
-	mov     rax, STACK_SIZE
+	mov     eax, STACK_SIZE + 5*8
 	ret
 
 
diff --git a/cipher/sha512-avx-amd64.S b/cipher/sha512-avx-amd64.S
index 900936e..3449b87 100644
--- a/cipher/sha512-avx-amd64.S
+++ b/cipher/sha512-avx-amd64.S
@@ -348,17 +348,7 @@ _gcry_sha512_transform_amd64_avx:
 	/* Restore Stack Pointer */
 	add	rsp, frame_size
 
-	vzeroupper
-	pxor	xmm0, xmm0
-	pxor	xmm1, xmm1
-	pxor	xmm2, xmm2
-	pxor	xmm3, xmm3
-	pxor	xmm4, xmm4
-	pxor	xmm5, xmm5
-	pxor	xmm6, xmm6
-	pxor	xmm7, xmm7
-	pxor	xmm8, xmm8
-	pxor	xmm9, xmm9
+	vzeroall
 
 	/* Return stack burn depth */
 	mov	rax, frame_size
diff --git a/cipher/sha512-avx2-bmi2-amd64.S b/cipher/sha512-avx2-bmi2-amd64.S
index 9ece4fd..d6301f3 100644
--- a/cipher/sha512-avx2-bmi2-amd64.S
+++ b/cipher/sha512-avx2-bmi2-amd64.S
@@ -719,19 +719,9 @@ _gcry_sha512_transform_amd64_avx2:
 	/* Restore Stack Pointer */
 	mov	rsp, [rsp + frame_RSPSAVE]
 
-	vzeroupper
-	pxor	xmm0, xmm0
-	pxor	xmm1, xmm1
-	pxor	xmm2, xmm2
-	pxor	xmm3, xmm3
-	pxor	xmm4, xmm4
-	pxor	xmm5, xmm5
-	pxor	xmm6, xmm6
-	pxor	xmm7, xmm7
-	pxor	xmm8, xmm8
-	pxor	xmm9, xmm9
-
-	mov	rax, frame_size
+	vzeroall
+
+	mov	eax, frame_size + 31
 .Lnowork:
 	ret
 

-----------------------------------------------------------------------

Summary of changes:
 cipher/Makefile.am              |    5 +++--
 cipher/sha1-ssse3-amd64.S       |    2 +-
 cipher/sha256-ssse3-amd64.S     |    2 +-
 cipher/sha512-avx-amd64.S       |   12 +-----------
 cipher/sha512-avx2-bmi2-amd64.S |   16 +++-------------
 5 files changed, 9 insertions(+), 28 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits


More information about the Gcrypt-devel mailing list