From: Eric Biggers Date: Sun, 13 Apr 2025 04:54:21 +0000 (-0700) Subject: crypto: poly1305 - remove rset and sset fields of poly1305_desc_ctx X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5f7325fbb3d416ba66f163a9272e17d70f1d9bf4;p=users%2Fjedix%2Flinux-maple.git crypto: poly1305 - remove rset and sset fields of poly1305_desc_ctx These fields are no longer needed, so remove them. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/include/crypto/poly1305.h b/include/crypto/poly1305.h index 91444965772a1..6e21ec2d1dc23 100644 --- a/include/crypto/poly1305.h +++ b/include/crypto/poly1305.h @@ -43,10 +43,6 @@ struct poly1305_desc_ctx { u8 buf[POLY1305_BLOCK_SIZE]; /* bytes used in partial buffer */ unsigned int buflen; - /* how many keys have been set in r[] */ - unsigned short rset; - /* whether s[] has been set */ - bool sset; /* finalize key */ u32 s[4]; /* accumulator */ diff --git a/lib/crypto/poly1305.c b/lib/crypto/poly1305.c index 6e80214ebad8b..b633b043f0f63 100644 --- a/lib/crypto/poly1305.c +++ b/lib/crypto/poly1305.c @@ -22,8 +22,6 @@ void poly1305_init_generic(struct poly1305_desc_ctx *desc, desc->s[3] = get_unaligned_le32(key + 28); poly1305_core_init(&desc->h); desc->buflen = 0; - desc->sset = true; - desc->rset = 2; } EXPORT_SYMBOL_GPL(poly1305_init_generic);