浏览代码

[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>
Michal Ludvig 19 年之前
父节点
当前提交
b14cdd6704
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      include/linux/crypto.h

+ 10 - 0
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;
 	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)
 static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
 {
 {
 	return module_name(tfm->__crt_alg->cra_module);
 	return module_name(tfm->__crt_alg->cra_module);