From: Eric Biggers <ebigg...@google.com> These fields are no longer needed, so remove them.
Signed-off-by: Eric Biggers <ebigg...@google.com> --- include/crypto/poly1305.h | 4 ---- lib/crypto/poly1305.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/include/crypto/poly1305.h b/include/crypto/poly1305.h index 91444965772a..6e21ec2d1dc2 100644 --- a/include/crypto/poly1305.h +++ b/include/crypto/poly1305.h @@ -41,14 +41,10 @@ struct poly1305_state { struct poly1305_desc_ctx { /* partial buffer */ 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 */ struct poly1305_state h; /* key */ diff --git a/lib/crypto/poly1305.c b/lib/crypto/poly1305.c index 6e80214ebad8..b633b043f0f6 100644 --- a/lib/crypto/poly1305.c +++ b/lib/crypto/poly1305.c @@ -20,12 +20,10 @@ void poly1305_init_generic(struct poly1305_desc_ctx *desc, desc->s[1] = get_unaligned_le32(key + 20); desc->s[2] = get_unaligned_le32(key + 24); 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); void poly1305_update_generic(struct poly1305_desc_ctx *desc, const u8 *src, unsigned int nbytes) -- 2.49.0