linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org, "David S. Miller" <davem@davemloft.net>
Subject: [PATCH 5/6] crypto: blowfish-x86_64 - set alignmask to zero
Date: Fri, 17 Feb 2012 22:48:58 +0200	[thread overview]
Message-ID: <20120217204858.3744.85322.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20120217204837.3744.54155.stgit@localhost6.localdomain6>

x86 has fast unaligned accesses, so blowfish-x86_64 does not need to enforce
alignment.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
---
 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 = {

  parent reply	other threads:[~2012-02-17 20:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17 20:48 [PATCH 1/6] crypto: serpent-sse2 - use crypto_[un]register_algs Jussi Kivilinna
2012-02-17 20:48 ` [PATCH 2/6] crypto: twofish-x86_64-3way " Jussi Kivilinna
2012-02-17 20:48 ` [PATCH 3/6] crypto: blowfish-x86_64 " Jussi Kivilinna
2012-02-17 20:48 ` [PATCH 4/6] crypto: serpent-sse2 - combine ablk_*_init functions Jussi Kivilinna
2012-02-17 20:48 ` Jussi Kivilinna [this message]
2012-02-17 20:49 ` [PATCH 6/6] crypto: twofish-x86_64/i586 - set alignmask to zero Jussi Kivilinna
2012-02-25  9:22 ` [PATCH 1/6] crypto: serpent-sse2 - use crypto_[un]register_algs Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120217204858.3744.85322.stgit@localhost6.localdomain6 \
    --to=jussi.kivilinna@mbnet.fi \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).