diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-01-07 16:38:15 +1100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-09 14:16:00 -0800 |
commit | a429d2609c153882c421b067ad5ae5a38851459e (patch) | |
tree | 896934bd313ef565011f09b13d0dc0ae3b043641 /crypto/des.c | |
parent | 7302533aac2df321b76e8a113e5cfa529c825b09 (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/des.c')
-rw-r--r-- | crypto/des.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/des.c b/crypto/des.c index dae42981012c..7bb548653dc6 100644 --- a/crypto/des.c +++ b/crypto/des.c @@ -949,6 +949,7 @@ static struct crypto_alg des_alg = { .cra_blocksize = DES_BLOCK_SIZE, .cra_ctxsize = sizeof(struct des_ctx), .cra_module = THIS_MODULE, + .cra_alignmask = 3, .cra_list = LIST_HEAD_INIT(des_alg.cra_list), .cra_u = { .cipher = { .cia_min_keysize = DES_KEY_SIZE, |