summaryrefslogtreecommitdiff
path: root/crypto/michael_mic.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2006-04-10 08:42:35 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2006-06-26 17:34:38 +1000
commit5aa683b411263042b1be30f77a55294b52fd02ba (patch)
tree37fe3f94ced6fce0374f963210ee4df84c9f5994 /crypto/michael_mic.c
parentfc6e8ec71a83c53b32de45b92439aaaf35676b82 (diff)
downloadlinux-crypto-5aa683b411263042b1be30f77a55294b52fd02ba.tar.gz
linux-crypto-5aa683b411263042b1be30f77a55294b52fd02ba.zip
[CRYPTO] digest: Add alignment handling
Some hash modules load/store data words directly. The digest layer should pass properly aligned buffer to update()/final() method. This patch also add cra_alignmask to some hash modules. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/michael_mic.c')
-rw-r--r--crypto/michael_mic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/michael_mic.c b/crypto/michael_mic.c
index 4f6ab23e..701f859e 100644
--- a/crypto/michael_mic.c
+++ b/crypto/michael_mic.c
@@ -145,6 +145,7 @@ static struct crypto_alg michael_mic_alg = {
.cra_blocksize = 8,
.cra_ctxsize = sizeof(struct michael_mic_ctx),
.cra_module = THIS_MODULE,
+ .cra_alignmask = 3,
.cra_list = LIST_HEAD_INIT(michael_mic_alg.cra_list),
.cra_u = { .digest = {
.dia_digestsize = 8,