summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-07-05 13:07:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 17:50:57 +0800
commit66d3994c673d211a9ce5da3d7576d90c8e0cd377 (patch)
tree8b789352a0ffd33e3f7a7d744e9636bc4c3352d0 /include/crypto
parentb8ae5c7387ad075ee61e8c8774ce2bca46bc9236 (diff)
downloadlinux-66d3994c673d211a9ce5da3d7576d90c8e0cd377.tar.gz
linux-66d3994c673d211a9ce5da3d7576d90c8e0cd377.tar.bz2
linux-66d3994c673d211a9ce5da3d7576d90c8e0cd377.zip
crypto: kpp - add get/set_flags helpers
These helpers will be used for fallbacks to kpp software implementations. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/kpp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/crypto/kpp.h b/include/crypto/kpp.h
index 2133d17b7156..1bde0a6514fa 100644
--- a/include/crypto/kpp.h
+++ b/include/crypto/kpp.h
@@ -145,6 +145,16 @@ static inline struct crypto_kpp *crypto_kpp_reqtfm(struct kpp_request *req)
return __crypto_kpp_tfm(req->base.tfm);
}
+static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm)
+{
+ return crypto_tfm_get_flags(crypto_kpp_tfm(tfm));
+}
+
+static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags)
+{
+ crypto_tfm_set_flags(crypto_kpp_tfm(tfm), flags);
+}
+
/**
* crypto_free_kpp() - free KPP tfm handle
*