Commit 4a70b526 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu

crypto: arm/chacha20 - remove cra_alignmask

Remove the unnecessary alignmask: it is much more efficient to deal with
the misalignment in the core algorithm than relying on the crypto API to
copy the data to a suitably aligned buffer.
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1465fb13
...@@ -94,7 +94,6 @@ static struct skcipher_alg alg = { ...@@ -94,7 +94,6 @@ static struct skcipher_alg alg = {
.base.cra_priority = 300, .base.cra_priority = 300,
.base.cra_blocksize = 1, .base.cra_blocksize = 1,
.base.cra_ctxsize = sizeof(struct chacha20_ctx), .base.cra_ctxsize = sizeof(struct chacha20_ctx),
.base.cra_alignmask = 1,
.base.cra_module = THIS_MODULE, .base.cra_module = THIS_MODULE,
.min_keysize = CHACHA20_KEY_SIZE, .min_keysize = CHACHA20_KEY_SIZE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment