Skip to content

Commit

Permalink
crypto: blowfish-x86_64 - set alignmask to zero
Browse files Browse the repository at this point in the history
x86 has fast unaligned accesses, so blowfish-x86_64 does not need to enforce
alignment.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Jussi Kivilinna authored and Herbert Xu committed Feb 25, 2012
1 parent 435d3e5 commit 919e2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/crypto/blowfish_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static struct crypto_alg bf_algs[4] = { {
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = BF_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct bf_ctx),
.cra_alignmask = 3,
.cra_alignmask = 0,
.cra_module = THIS_MODULE,
.cra_list = LIST_HEAD_INIT(bf_algs[0].cra_list),
.cra_u = {
Expand Down

0 comments on commit 919e2c3

Please sign in to comment.