summaryrefslogtreecommitdiff
path: root/arch/arm64/crypto/sha512-glue.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-01-19 12:04:40 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-26 01:10:36 +1100
commitfb87127bcefc17efab757606e1b1e333fd614dd0 (patch)
tree832de08d7e3f6113d245304a6223541d21247646 /arch/arm64/crypto/sha512-glue.c
parent140aa50d68ea01e7caea6900f6f51882d4dd65c5 (diff)
crypto: arm64/sha512 - fix/improve new v8.2 Crypto Extensions code
Add a missing symbol export that prevents this code to be built as a module. Also, move the round constant table to the .rodata section, and use a more optimized version of the core transform. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto/sha512-glue.c')
-rw-r--r--arch/arm64/crypto/sha512-glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/crypto/sha512-glue.c b/arch/arm64/crypto/sha512-glue.c
index aff35c9992a4..27db4851e380 100644
--- a/arch/arm64/crypto/sha512-glue.c
+++ b/arch/arm64/crypto/sha512-glue.c
@@ -27,6 +27,7 @@ MODULE_ALIAS_CRYPTO("sha512");
asmlinkage void sha512_block_data_order(u32 *digest, const void *data,
unsigned int num_blks);
+EXPORT_SYMBOL(sha512_block_data_order);
static int sha512_update(struct shash_desc *desc, const u8 *data,
unsigned int len)