summaryrefslogtreecommitdiff
path: root/crypto/twofish.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-01-07 16:38:15 +1100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 14:16:00 -0800
commitf7afd93a492e6c3d73b66688f3c719087434feab (patch)
treea9cc17068bb551f581850ac5a26f26738ddd1e6c /crypto/twofish.c
parentf0b417f3babd0c640f7a9ebc6a465191a97afebb (diff)
downloadlinux-crypto-f7afd93a492e6c3d73b66688f3c719087434feab.tar.gz
linux-crypto-f7afd93a492e6c3d73b66688f3c719087434feab.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 '')
-rw-r--r--crypto/twofish.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/twofish.c b/crypto/twofish.c
index b501d5ab..a26d8854 100644
--- a/crypto/twofish.c
+++ b/crypto/twofish.c
@@ -879,6 +879,7 @@ static struct crypto_alg alg = {
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = TF_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct twofish_ctx),
+ .cra_alignmask = 3,
.cra_module = THIS_MODULE,
.cra_list = LIST_HEAD_INIT(alg.cra_list),
.cra_u = { .cipher = {