aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cast5.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/cast5.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/cast5.c')
-rw-r--r--crypto/cast5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/cast5.c b/crypto/cast5.c
index 282641c974a8..8834c8580c04 100644
--- a/crypto/cast5.c
+++ b/crypto/cast5.c
@@ -809,6 +809,7 @@ static struct crypto_alg alg = {
809 .cra_flags = CRYPTO_ALG_TYPE_CIPHER, 809 .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
810 .cra_blocksize = CAST5_BLOCK_SIZE, 810 .cra_blocksize = CAST5_BLOCK_SIZE,
811 .cra_ctxsize = sizeof(struct cast5_ctx), 811 .cra_ctxsize = sizeof(struct cast5_ctx),
812 .cra_alignmask = 3,
812 .cra_module = THIS_MODULE, 813 .cra_module = THIS_MODULE,
813 .cra_list = LIST_HEAD_INIT(alg.cra_list), 814 .cra_list = LIST_HEAD_INIT(alg.cra_list),
814 .cra_u = { 815 .cra_u = {