aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/polyval-generic.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-11-09 15:47:16 -0800
committerEric Biggers <ebiggers@kernel.org>2025-11-11 11:03:38 -0800
commite1c360849794c2e638cff5486e4ee256568dd3b3 (patch)
treec267c635487748579cfd848ed3a95a0900f4f85f /crypto/polyval-generic.c
parent8ba60c5914f25a44f10189c6919a737b199f6dbf (diff)
downloadnet-e1c360849794c2e638cff5486e4ee256568dd3b3.tar.gz
crypto: polyval - Rename conflicting functions
Rename polyval_init() and polyval_update(), in preparation for adding library functions with the same name to <crypto/polyval.h>. Note that polyval-generic.c will be removed later, as it will be superseded by the library. This commit just keeps the kernel building for the initial introduction of the library. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20251109234726.638437-2-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'crypto/polyval-generic.c')
-rw-r--r--crypto/polyval-generic.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/polyval-generic.c b/crypto/polyval-generic.c
index db8adb56e4cac4..fe5b01a4000d11 100644
--- a/crypto/polyval-generic.c
+++ b/crypto/polyval-generic.c
@@ -99,7 +99,7 @@ static int polyval_setkey(struct crypto_shash *tfm,
return 0;
}
-static int polyval_init(struct shash_desc *desc)
+static int polyval_generic_init(struct shash_desc *desc)
{
struct polyval_desc_ctx *dctx = shash_desc_ctx(desc);
@@ -108,8 +108,8 @@ static int polyval_init(struct shash_desc *desc)
return 0;
}
-static int polyval_update(struct shash_desc *desc,
- const u8 *src, unsigned int srclen)
+static int polyval_generic_update(struct shash_desc *desc,
+ const u8 *src, unsigned int srclen)
{
struct polyval_desc_ctx *dctx = shash_desc_ctx(desc);
const struct polyval_tfm_ctx *ctx = crypto_shash_ctx(desc->tfm);
@@ -135,7 +135,7 @@ static int polyval_finup(struct shash_desc *desc, const u8 *src,
u8 tmp[POLYVAL_BLOCK_SIZE] = {};
memcpy(tmp, src, len);
- polyval_update(desc, tmp, POLYVAL_BLOCK_SIZE);
+ polyval_generic_update(desc, tmp, POLYVAL_BLOCK_SIZE);
}
copy_and_reverse(dst, dctx->buffer);
return 0;
@@ -166,8 +166,8 @@ static void polyval_exit_tfm(struct crypto_shash *tfm)
static struct shash_alg polyval_alg = {
.digestsize = POLYVAL_DIGEST_SIZE,
- .init = polyval_init,
- .update = polyval_update,
+ .init = polyval_generic_init,
+ .update = polyval_generic_update,
.finup = polyval_finup,
.setkey = polyval_setkey,
.export = polyval_export,