From: Jussi Kivilinna Subject: [PATCH 5/6] crypto: blowfish-x86_64 - set alignmask to zero Date: Fri, 17 Feb 2012 22:48:58 +0200 Message-ID: <20120217204858.3744.85322.stgit@localhost6.localdomain6> References: <20120217204837.3744.54155.stgit@localhost6.localdomain6> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: linux-crypto@vger.kernel.org, "David S. Miller" To: Herbert Xu Return-path: Received: from sd-mail-sa-02.sanoma.fi ([158.127.18.162]:43933 "EHLO sd-mail-sa-02.sanoma.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753659Ab2BQUtA (ORCPT ); Fri, 17 Feb 2012 15:49:00 -0500 In-Reply-To: <20120217204837.3744.54155.stgit@localhost6.localdomain6> Sender: linux-crypto-owner@vger.kernel.org List-ID: x86 has fast unaligned accesses, so blowfish-x86_64 does not need to enforce alignment. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/blowfish_glue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/crypto/blowfish_glue.c b/arch/x86/crypto/blowfish_glue.c index 73bc8a9..7967474 100644 --- a/arch/x86/crypto/blowfish_glue.c +++ b/arch/x86/crypto/blowfish_glue.c @@ -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 = {