projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919e2c3
)
crypto: twofish-x86_64/i586 - set alignmask to zero
author
Jussi Kivilinna
<jussi.kivilinna@mbnet.fi>
Fri, 17 Feb 2012 20:49:03 +0000
(22:49 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 25 Feb 2012 09:20:24 +0000
(17:20 +0800)
x86 has fast unaligned accesses, so twofish-x86_64/i586 does not need to enforce
alignment.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/twofish_glue.c
patch
|
blob
|
history
diff --git
a/arch/x86/crypto/twofish_glue.c
b/arch/x86/crypto/twofish_glue.c
index dc6b3fb817fcfd6b36cb1cdf9ac111d6492d4218..359ae084275cbb2610d66c4d52d653c9564c2c3e 100644
(file)
--- a/
arch/x86/crypto/twofish_glue.c
+++ b/
arch/x86/crypto/twofish_glue.c
@@
-68,7
+68,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_alignmask =
0
,
.cra_module = THIS_MODULE,
.cra_list = LIST_HEAD_INIT(alg.cra_list),
.cra_u = {