]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: powerpc/poly1305 - Add missing poly1305_emit_arch
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 May 2025 11:36:58 +0000 (19:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 May 2025 01:36:45 +0000 (09:36 +0800)
Rename poly1305_emit_64 to poly1305_emit_arch to conform with
the expectation of the poly1305 library.

Reported-by: Thorsten Leemhuis <linux@leemhuis.info>
Fixes: 14d31979145d ("crypto: powerpc/poly1305 - Add block-only interface")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Thorsten Leemhuis <linux@leemhuis.info>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/lib/crypto/poly1305-p10-glue.c
arch/powerpc/lib/crypto/poly1305-p10le_64.S

index 16c2a831669633f8ee333da5d9dfc044d9e6e774..7cea0ebcc6bc575414aaf3610e20a262cf8ed5cc 100644 (file)
@@ -17,6 +17,7 @@ asmlinkage void poly1305_64s(struct poly1305_block_state *state, const u8 *m, u3
 asmlinkage void poly1305_emit_arch(const struct poly1305_state *state,
                                   u8 digest[POLY1305_DIGEST_SIZE],
                                   const u32 nonce[4]);
+EXPORT_SYMBOL_GPL(poly1305_emit_arch);
 
 static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_p10);
 
index a3c1987f1ecd10bb9c4b72df12aebb6bf0cc0dec..2ba2911b8038820910f2545dd062d8db2639e5a5 100644 (file)
@@ -1030,7 +1030,7 @@ SYM_FUNC_END(poly1305_64s)
 # Input: r3 = h, r4 = s, r5 = mac
 # mac = h + s
 #
-SYM_FUNC_START(poly1305_emit_64)
+SYM_FUNC_START(poly1305_emit_arch)
        ld      10, 0(3)
        ld      11, 8(3)
        ld      12, 16(3)
@@ -1060,7 +1060,7 @@ Skip_h64:
        std     10, 0(5)
        std     11, 8(5)
        blr
-SYM_FUNC_END(poly1305_emit_64)
+SYM_FUNC_END(poly1305_emit_arch)
 
 SYM_DATA_START_LOCAL(RMASK)
 .align 5