Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: chacha20poly1305 - stop using alignmask of ahash

Now that the alignmask for ahash and shash algorithms is always 0,
simplify chachapoly_create() accordingly.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
381a796a 36cfc057

+1 -2
+1 -2
crypto/chacha20poly1305.c
··· 610 610 inst->alg.base.cra_priority = (chacha->base.cra_priority + 611 611 poly->base.cra_priority) / 2; 612 612 inst->alg.base.cra_blocksize = 1; 613 - inst->alg.base.cra_alignmask = chacha->base.cra_alignmask | 614 - poly->base.cra_alignmask; 613 + inst->alg.base.cra_alignmask = chacha->base.cra_alignmask; 615 614 inst->alg.base.cra_ctxsize = sizeof(struct chachapoly_ctx) + 616 615 ctx->saltlen; 617 616 inst->alg.ivsize = ivsize;