diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 05:56:28 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 06:58:30 -0400 |
commit | 7d6f56400a695af497a8b7c23ea0ff9c3d9d99f4 (patch) | |
tree | 53447ff76fda984ca3fb59aca2bd5f3454842b14 /include/crypto | |
parent | d06854f0243d91badabaab14503f7f3bb770061d (diff) |
crypto: shash - Add shash_attr_alg2 helper
This patch adds the helper shash_attr_alg2 which locates a shash
algorithm based on the information in the given attribute.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/hash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 6cc824b79331..e2ab35a74c62 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h | |||
@@ -60,6 +60,8 @@ int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, | |||
60 | struct shash_alg *alg, | 60 | struct shash_alg *alg, |
61 | struct crypto_instance *inst); | 61 | struct crypto_instance *inst); |
62 | 62 | ||
63 | struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask); | ||
64 | |||
63 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) | 65 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) |
64 | { | 66 | { |
65 | return crypto_tfm_ctx(&tfm->base); | 67 | return crypto_tfm_ctx(&tfm->base); |