aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-01-07 00:38:15 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 17:16:00 -0500
commita429d2609c153882c421b067ad5ae5a38851459e (patch)
tree896934bd313ef565011f09b13d0dc0ae3b043641 /crypto/anubis.c
parent7302533aac2df321b76e8a113e5cfa529c825b09 (diff)
[CRYPTO] cipher: Set alignmask for multi-byte loads
Many cipher implementations use 4-byte/8-byte loads/stores which require alignment on some architectures. This patch explicitly sets the alignment requirements for them. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/anubis.c')
-rw-r--r--crypto/anubis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/anubis.c b/crypto/anubis.c
index 94c4b1f3e3a..2c796bdb91a 100644
--- a/crypto/anubis.c
+++ b/crypto/anubis.c
@@ -677,6 +677,7 @@ static struct crypto_alg anubis_alg = {
677 .cra_flags = CRYPTO_ALG_TYPE_CIPHER, 677 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
678 .cra_blocksize = ANUBIS_BLOCK_SIZE, 678 .cra_blocksize = ANUBIS_BLOCK_SIZE,
679 .cra_ctxsize = sizeof (struct anubis_ctx), 679 .cra_ctxsize = sizeof (struct anubis_ctx),
680 .cra_alignmask = 3,
680 .cra_module = THIS_MODULE, 681 .cra_module = THIS_MODULE,
681 .cra_list = LIST_HEAD_INIT(anubis_alg.cra_list), 682 .cra_list = LIST_HEAD_INIT(anubis_alg.cra_list),
682 .cra_u = { .cipher = { 683 .cra_u = { .cipher = {