Thin skcipher wrapper over crypto_tfm_req_seg() (mirroring
crypto_acomp_req_seg()), so the skcipher mid-layer can ask whether an
algorithm advertises native multi-unit (CRYPTO_ALG_REQ_SEG) support.

Signed-off-by: Leonid Ravich <[email protected]>
---
 include/crypto/internal/skcipher.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/crypto/internal/skcipher.h 
b/include/crypto/internal/skcipher.h
index a965b6aabf61..8e9353f4252e 100644
--- a/include/crypto/internal/skcipher.h
+++ b/include/crypto/internal/skcipher.h
@@ -249,6 +249,11 @@ static inline bool crypto_skcipher_tested(struct 
crypto_skcipher *tfm)
        return tfm_base->__crt_alg->cra_flags & CRYPTO_ALG_TESTED;
 }
 
+static inline bool crypto_skcipher_req_seg(struct crypto_skcipher *tfm)
+{
+       return crypto_tfm_req_seg(&tfm->base);
+}
+
 static inline void *skcipher_request_ctx(struct skcipher_request *req)
 {
        return req->__ctx;
-- 
2.47.3


Reply via email to