projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc00127
)
crypto: cryptd - Use crypto_ahash_set_reqsize
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 12 Jul 2009 15:06:33 +0000
(23:06 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 14 Jul 2009 04:58:12 +0000
(12:58 +0800)
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>
crypto/cryptd.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/cryptd.c
b/crypto/cryptd.c
index ef5720cf121675d7b1577df2a4adff4f54cab195..6e6722edd0d96e84108ab25bb77e52eeab7f2da8 100644
(file)
--- a/
crypto/cryptd.c
+++ b/
crypto/cryptd.c
@@
-353,8
+353,9
@@
static int cryptd_hash_init_tfm(struct crypto_tfm *tfm)
return PTR_ERR(hash);
ctx->child = hash;
- tfm->crt_ahash.reqsize = sizeof(struct cryptd_hash_request_ctx) +
- crypto_shash_descsize(hash);
+ crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
+ sizeof(struct cryptd_hash_request_ctx) +
+ crypto_shash_descsize(hash));
return 0;
}