summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichal Ludvig <michal@logix.cz>2006-07-09 01:02:24 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 03:40:21 +0200
commitb14cdd6704c96474ba5c74b5959487beaa5ee1cd (patch)
tree9964ad4284280c8064ac8dc6b35d8ef8eaca65f3 /include
parent[CRYPTO] sha: Add module aliases for sha1 / sha256 (diff)
downloadlinux-b14cdd6704c96474ba5c74b5959487beaa5ee1cd.tar.xz
linux-b14cdd6704c96474ba5c74b5959487beaa5ee1cd.zip
[CRYPTO] api: Add missing accessors for new crypto_alg fields
Add missing accessors for cra_driver_name and cra_priority. Signed-off-by: Michal Ludvig <michal@logix.cz> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/crypto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 40a6330abc8d..d6e184c876b5 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -297,6 +297,16 @@ static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm)
return tfm->__crt_alg->cra_name;
}
+static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm)
+{
+ return tfm->__crt_alg->cra_driver_name;
+}
+
+static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm)
+{
+ return tfm->__crt_alg->cra_priority;
+}
+
static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
{
return module_name(tfm->__crt_alg->cra_module);