浏览代码

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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Ard Biesheuvel 8 年之前
父节点
当前提交
4a70b52620
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      arch/arm/crypto/chacha20-neon-glue.c

+ 0 - 1
arch/arm/crypto/chacha20-neon-glue.c

@@ -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,