summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/sha512-ssse3-asm.S
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-04-09 12:55:48 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-10 21:39:48 +0800
commite68410ebf62676dfb93aafff7c55b76644f37072 (patch)
tree57db3b65d6c10e8ec1ab1b9dfff1b4ebcded22d8 /arch/x86/crypto/sha512-ssse3-asm.S
parent1631030ae63aef0a54fe08813e0f4e26c8ef9c78 (diff)
downloadop-kernel-dev-e68410ebf62676dfb93aafff7c55b76644f37072.zip
op-kernel-dev-e68410ebf62676dfb93aafff7c55b76644f37072.tar.gz
crypto: x86/sha512_ssse3 - move SHA-384/512 SSSE3 implementation to base layer
This removes all the boilerplate from the existing implementation, and replaces it with calls into the base layer. It also changes the prototypes of the core asm functions to be compatible with the base prototype void (sha512_block_fn)(struct sha256_state *sst, u8 const *src, int blocks) so that they can be passed to the base layer directly. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/sha512-ssse3-asm.S')
-rw-r--r--arch/x86/crypto/sha512-ssse3-asm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/crypto/sha512-ssse3-asm.S b/arch/x86/crypto/sha512-ssse3-asm.S
index fb56855..e610e29 100644
--- a/arch/x86/crypto/sha512-ssse3-asm.S
+++ b/arch/x86/crypto/sha512-ssse3-asm.S
@@ -53,9 +53,9 @@
# Virtual Registers
# ARG1
-msg = %rdi
+digest = %rdi
# ARG2
-digest = %rsi
+msg = %rsi
# ARG3
msglen = %rdx
T1 = %rcx
@@ -269,7 +269,7 @@ frame_size = frame_GPRSAVE + GPRSAVE_SIZE
.endm
########################################################################
-# void sha512_transform_ssse3(const void* M, void* D, u64 L)#
+# void sha512_transform_ssse3(void* D, const void* M, u64 L)#
# Purpose: Updates the SHA512 digest stored at D with the message stored in M.
# The size of the message pointed to by M must be an integer multiple of SHA512
# message blocks.
OpenPOWER on IntegriCloud