diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-02-11 14:25:22 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-15 00:23:46 -0500 |
commit | 5ba8e2a05ed6695f38f3961ca8cb5cfc1063a842 (patch) | |
tree | b23b9675dd7f7e59e02d11c653f37379f29b4bdc | |
parent | 5338ad7065c0a4cb55e949638b1fdba6b09dc5a2 (diff) |
crypto: ccm - drop unnecessary minimum 32-bit alignment
The CCM driver forces 32-bit alignment even if the underlying ciphers
don't care about alignment. This is because crypto_xor() used to require
this, but since this is no longer the case, drop the hardcoded minimum
of 32 bits.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/ccm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c index 24c26ab052ca..442848807a52 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c | |||
@@ -525,8 +525,7 @@ static int crypto_ccm_create_common(struct crypto_template *tmpl, | |||
525 | ctr->base.cra_priority) / 2; | 525 | ctr->base.cra_priority) / 2; |
526 | inst->alg.base.cra_blocksize = 1; | 526 | inst->alg.base.cra_blocksize = 1; |
527 | inst->alg.base.cra_alignmask = mac->base.cra_alignmask | | 527 | inst->alg.base.cra_alignmask = mac->base.cra_alignmask | |
528 | ctr->base.cra_alignmask | | 528 | ctr->base.cra_alignmask; |
529 | (__alignof__(u32) - 1); | ||
530 | inst->alg.ivsize = 16; | 529 | inst->alg.ivsize = 16; |
531 | inst->alg.chunksize = crypto_skcipher_alg_chunksize(ctr); | 530 | inst->alg.chunksize = crypto_skcipher_alg_chunksize(ctr); |
532 | inst->alg.maxauthsize = 16; | 531 | inst->alg.maxauthsize = 16; |