summaryrefslogtreecommitdiffstats
path: root/crypto/aes.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-01-07 06:38:15 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 23:16:00 +0100
commita429d2609c153882c421b067ad5ae5a38851459e (patch)
tree896934bd313ef565011f09b13d0dc0ae3b043641 /crypto/aes.c
parent[CRYPTO] api: Require block size to be less than PAGE_SIZE/8 (diff)
downloadlinux-a429d2609c153882c421b067ad5ae5a38851459e.tar.xz
linux-a429d2609c153882c421b067ad5ae5a38851459e.zip
[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/aes.c')
-rw-r--r--crypto/aes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/aes.c b/crypto/aes.c
index b9b2afb42792..0a6a5c143686 100644
--- a/crypto/aes.c
+++ b/crypto/aes.c
@@ -423,6 +423,7 @@ static struct crypto_alg aes_alg = {
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = AES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct aes_ctx),
+ .cra_alignmask = 3,
.cra_module = THIS_MODULE,
.cra_list = LIST_HEAD_INIT(aes_alg.cra_list),
.cra_u = {