aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cryptd.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-12 11:06:33 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 00:58:12 -0400
commit0d6669e2ba60ce5f5d4def6ab453f03567cc738e (patch)
tree1b0cd188a8c554baaf1b814df2d10b6f6c2993a4 /crypto/cryptd.c
parentfc00127fb67b2a7d2b66f0f4096a5367b581f045 (diff)
crypto: cryptd - Use crypto_ahash_set_reqsize
This patch makes cryptd use crypto_ahash_set_reqsize to avoid accessing crypto_ahash directly. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cryptd.c')
-rw-r--r--crypto/cryptd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index ef5720cf1216..6e6722edd0d9 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -353,8 +353,9 @@ static int cryptd_hash_init_tfm(struct crypto_tfm *tfm)
353 return PTR_ERR(hash); 353 return PTR_ERR(hash);
354 354
355 ctx->child = hash; 355 ctx->child = hash;
356 tfm->crt_ahash.reqsize = sizeof(struct cryptd_hash_request_ctx) + 356 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
357 crypto_shash_descsize(hash); 357 sizeof(struct cryptd_hash_request_ctx) +
358 crypto_shash_descsize(hash));
358 return 0; 359 return 0;
359} 360}
360 361