crypto: blowfish-x86_64 - set alignmask to zero
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Fri, 17 Feb 2012 20:48:58 +0000 (22:48 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 25 Feb 2012 09:20:24 +0000 (17:20 +0800)
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>
arch/x86/crypto/blowfish_glue.c

index 73bc8a93f0ceb302330937719efc387fc0a7d450..7967474de8f7c8e0c1c0f50db3ad4652d431f5a3 100644 (file)
@@ -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 = {