Skip to content

Commit 36cfc05

Browse files
ebiggersherbertx
authored andcommitted
crypto: ccm - stop using alignmask of ahash
Now that the alignmask for ahash and shash algorithms is always 0, simplify crypto_ccm_create_common() accordingly. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 0a6bfaa commit 36cfc05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crypto/ccm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,7 @@ static int crypto_ccm_create_common(struct crypto_template *tmpl,
504504
inst->alg.base.cra_priority = (mac->base.cra_priority +
505505
ctr->base.cra_priority) / 2;
506506
inst->alg.base.cra_blocksize = 1;
507-
inst->alg.base.cra_alignmask = mac->base.cra_alignmask |
508-
ctr->base.cra_alignmask;
507+
inst->alg.base.cra_alignmask = ctr->base.cra_alignmask;
509508
inst->alg.ivsize = 16;
510509
inst->alg.chunksize = ctr->chunksize;
511510
inst->alg.maxauthsize = 16;

0 commit comments

Comments
 (0)