Commit 1be75059 authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu

crypto: arm64/sha512 - clean up backwards function names

In the Linux kernel, a function whose name has two leading underscores
is conventionally called by the same-named function without leading
underscores -- not the other way around.  __sha512_block_data_order()
got this backwards.  Fix this, albeit without changing the name in the
perlasm since that is OpenSSL code.  No change in behavior.
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 455951b5
...@@ -23,7 +23,7 @@ asmlinkage void sha512_block_data_order(u64 *digest, const void *data, ...@@ -23,7 +23,7 @@ asmlinkage void sha512_block_data_order(u64 *digest, const void *data,
unsigned int num_blks); unsigned int num_blks);
EXPORT_SYMBOL(sha512_block_data_order); EXPORT_SYMBOL(sha512_block_data_order);
static void __sha512_block_data_order(struct sha512_state *sst, u8 const *src, static void sha512_arm64_transform(struct sha512_state *sst, u8 const *src,
int blocks) int blocks)
{ {
sha512_block_data_order(sst->state, src, blocks); sha512_block_data_order(sst->state, src, blocks);
...@@ -32,17 +32,15 @@ static void __sha512_block_data_order(struct sha512_state *sst, u8 const *src, ...@@ -32,17 +32,15 @@ static void __sha512_block_data_order(struct sha512_state *sst, u8 const *src,
static int sha512_update(struct shash_desc *desc, const u8 *data, static int sha512_update(struct shash_desc *desc, const u8 *data,
unsigned int len) unsigned int len)
{ {
return sha512_base_do_update(desc, data, len, return sha512_base_do_update(desc, data, len, sha512_arm64_transform);
__sha512_block_data_order);
} }
static int sha512_finup(struct shash_desc *desc, const u8 *data, static int sha512_finup(struct shash_desc *desc, const u8 *data,
unsigned int len, u8 *out) unsigned int len, u8 *out)
{ {
if (len) if (len)
sha512_base_do_update(desc, data, len, sha512_base_do_update(desc, data, len, sha512_arm64_transform);
__sha512_block_data_order); sha512_base_do_finalize(desc, sha512_arm64_transform);
sha512_base_do_finalize(desc, __sha512_block_data_order);
return sha512_base_finish(desc, out); return sha512_base_finish(desc, out);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment