Skip to contentSkip to conversation

poly1305: Make prototypes match

PATCH In review Andi Kleen 3 participants 4 messages Apr 25, 2021 – May 17, 2021 Crypto API

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 poly1305: Make prototypes match

From: Andi Kleen <[email protected]>

gcc 11 complains when arrays in prototypes do not match the function. Fix this here.

Cc Jason A. Donenfeld <[email protected]>
Cc Herbert Xu <[email protected]>
---
 include/crypto/internal/poly1305.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/crypto/internal/poly1305.h +1 -1
index 064e52ca5248..90ee36411e36 100644
@@ -18,7 +18,7 @@
  * only the ε-almost-∆-universal hash function (not the full MAC) is computed.
  */
 
-void poly1305_core_setkey(struct poly1305_core_key *key, const u8 *raw_key);
+void poly1305_core_setkey(struct poly1305_core_key *key, const u8 raw_key[16]);
 static inline void poly1305_core_init(struct poly1305_state *state)
 {
 	*state = (struct poly1305_state){};
Signature · 1 line
2.25.4
maintainer
#1 lore raw
Quoted 11 lines · Andi Kleen

From: Andi Kleen <[email protected]>

gcc 11 complains when arrays in prototypes do not match the function. Fix this here.

Cc Jason A. Donenfeld <[email protected]>
Cc Herbert Xu <[email protected]>
---
 include/crypto/internal/poly1305.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Just noticed that this wasn't cc'ed to linux-crypto. Andi, could you please resend with a cc to the list?

Thanks,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#2 lore raw
Quoted 13 lines · Herbert Xu
Quoted 11 lines · Andi Kleen

From: Andi Kleen <[email protected]>

gcc 11 complains when arrays in prototypes do not match the function. Fix this here.

Cc Jason A. Donenfeld <[email protected]>
Cc Herbert Xu <[email protected]>
---
 include/crypto/internal/poly1305.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 2 lines

Just noticed that this wasn't cc'ed to linux-crypto. Andi, could you please resend with a cc to the list?

I thought it was already fixed by Arnd? I think I collided with him.

-Andi

maintainer
#3 lore raw
Quoted 2 lines · Andi Kleen

I thought it was already fixed by Arnd? I think I collided with him.

Nevermind, you are right Andi.

Thanks,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt