summaryrefslogtreecommitdiffstats
path: root/include/crypto/internal
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 12:50:12 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 12:58:00 +0800
commit113adefc73c291f93f875fe515a46d8f76252fff (patch)
treed8b71f64e7ed074ede921a1b2ba65d606367735e /include/crypto/internal
parentaef73cfcb913eae3d0deeb60eb385f75039db40b (diff)
downloadop-kernel-dev-113adefc73c291f93f875fe515a46d8f76252fff.zip
op-kernel-dev-113adefc73c291f93f875fe515a46d8f76252fff.tar.gz
crypto: shash - Make descsize a run-time attribute
This patch changes descsize to a run-time attribute so that implementations can change it in their init functions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal')
-rw-r--r--include/crypto/internal/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h
index 069b93e..2d1b10f 100644
--- a/include/crypto/internal/hash.h
+++ b/include/crypto/internal/hash.h
@@ -135,7 +135,7 @@ static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
{
- return (struct crypto_shash *)tfm;
+ return container_of(tfm, struct crypto_shash, base);
}
#endif /* _CRYPTO_INTERNAL_HASH_H */
OpenPOWER on IntegriCloud