summaryrefslogtreecommitdiff
path: root/cipher/sha512-avx-amd64.S
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-12-14 11:23:03 +0200
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2013-12-14 11:23:03 +0200
commitffd9b2aa5abda7f4d7790ed48116ed5d71ab9995 (patch)
tree235836722016e1ca60416d4bd18fef1bb32d88e1 /cipher/sha512-avx-amd64.S
parentc86c35534a153b13e880d0bb0ea3e48e1c0ecaf9 (diff)
downloadlibgcrypt-ffd9b2aa5abda7f4d7790ed48116ed5d71ab9995.tar.gz
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@iki.fi>
Diffstat (limited to 'cipher/sha512-avx-amd64.S')
-rw-r--r--cipher/sha512-avx-amd64.S12
1 files changed, 1 insertions, 11 deletions
diff --git a/cipher/sha512-avx-amd64.S b/cipher/sha512-avx-amd64.S
index 900936ee..3449b877 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