[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-73-gc20daee
by Jussi Kivilinna
cvs at cvs.gnupg.org
Fri May 16 19:19:28 CEST 2014
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 c20daeeb05329bfc6cc2c562cbd4b965291fe0e1 (commit)
via a3062db748f272e0f7346e1ed9e0bf7ed61a4eae (commit)
via a7d9eeeba632b7eb4a5b15ff17f6565181642f3c (commit)
from a39ee7555691d18cae97560f130aaf952bfbd278 (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 c20daeeb05329bfc6cc2c562cbd4b965291fe0e1
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Mon May 12 20:14:32 2014 +0300
chacha20/AVX2: clear upper-halfs of YMM registers on entry
* cipher/chacha20-avx2-amd64.S (_gcry_chacha20_amd64_avx2_blocks): Add
'vzeroupper' at beginning.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/cipher/chacha20-avx2-amd64.S b/cipher/chacha20-avx2-amd64.S
index 0c5f3f9..1f33de8 100644
--- a/cipher/chacha20-avx2-amd64.S
+++ b/cipher/chacha20-avx2-amd64.S
@@ -42,6 +42,7 @@
.type _gcry_chacha20_amd64_avx2_blocks, at function;
_gcry_chacha20_amd64_avx2_blocks:
.Lchacha_blocks_avx2_local:
+ vzeroupper
pushq %rbx
pushq %rbp
pushq %r12
commit a3062db748f272e0f7346e1ed9e0bf7ed61a4eae
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Mon May 12 20:11:33 2014 +0300
chacha20/AVX2: check for ENABLE_AVX2_SUPPORT instead of HAVE_GCC_INLINE_ASM_AVX2
* cipher/chacha20.c (USE_AVX2): Enable depending on
ENABLE_AVX2_SUPPORT, not HAVE_GCC_INLINE_ASM_AVX2.
* cipher/chacha20-avx2-amd64.S: Ditto.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/cipher/chacha20-avx2-amd64.S b/cipher/chacha20-avx2-amd64.S
index c50a0c0..0c5f3f9 100644
--- a/cipher/chacha20-avx2-amd64.S
+++ b/cipher/chacha20-avx2-amd64.S
@@ -27,7 +27,7 @@
#include <config.h>
#if defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) && \
- defined(HAVE_GCC_INLINE_ASM_AVX2) && USE_CHACHA20
+ defined(ENABLE_AVX2_SUPPORT) && USE_CHACHA20
#ifdef __PIC__
# define RIP (%rip)
diff --git a/cipher/chacha20.c b/cipher/chacha20.c
index 2ac5a32..e2cf442 100644
--- a/cipher/chacha20.c
+++ b/cipher/chacha20.c
@@ -57,7 +57,7 @@
/* USE_AVX2 indicates whether to compile with Intel AVX2 code. */
#undef USE_AVX2
#if defined(__x86_64__) && defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) && \
- defined(HAVE_GCC_INLINE_ASM_AVX2)
+ defined(ENABLE_AVX2_SUPPORT)
# define USE_AVX2 1
#endif
commit a7d9eeeba632b7eb4a5b15ff17f6565181642f3c
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Mon May 12 19:55:35 2014 +0300
chacha20/SSSE3: clear XMM registers after use
* cipher/chacha20-ssse3-amd64.S (_gcry_chacha20_amd64_ssse3_blocks): On
return, clear XMM registers.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/cipher/chacha20-ssse3-amd64.S b/cipher/chacha20-ssse3-amd64.S
index aaa7e5b..50c2ff8 100644
--- a/cipher/chacha20-ssse3-amd64.S
+++ b/cipher/chacha20-ssse3-amd64.S
@@ -594,9 +594,25 @@ _gcry_chacha20_amd64_ssse3_blocks:
.Lchacha_blocks_ssse3_done:
movdqu %xmm11, 48(%rdi)
movq %rbp, %rsp
+ pxor %xmm15, %xmm15
+ pxor %xmm7, %xmm7
+ pxor %xmm14, %xmm14
+ pxor %xmm6, %xmm6
+ pxor %xmm13, %xmm13
+ pxor %xmm5, %xmm5
+ pxor %xmm12, %xmm12
+ pxor %xmm4, %xmm4
popq %rbp
popq %rbx
movl $(63 + 512 + 16), %eax
+ pxor %xmm11, %xmm11
+ pxor %xmm3, %xmm3
+ pxor %xmm10, %xmm10
+ pxor %xmm2, %xmm2
+ pxor %xmm9, %xmm9
+ pxor %xmm1, %xmm1
+ pxor %xmm8, %xmm8
+ pxor %xmm0, %xmm0
ret
.size _gcry_chacha20_amd64_ssse3_blocks,.-_gcry_chacha20_amd64_ssse3_blocks;
-----------------------------------------------------------------------
Summary of changes:
cipher/chacha20-avx2-amd64.S | 3 ++-
cipher/chacha20-ssse3-amd64.S | 16 ++++++++++++++++
cipher/chacha20.c | 2 +-
3 files changed, 19 insertions(+), 2 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