[CRYPTO] ablkcipher: Added ablkcipher_request_complete

This patch adds the helper ablkcipher_request_complete which should be
called when an ablkcipher algorithm has completed a request.

Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---

 include/crypto/algapi.h |    6 ++++++
 1 files changed, 6 insertions(+)

diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index bb8a2e8..e4a4092 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -297,6 +297,12 @@ static inline void *ablkcipher_request_ctx(struct 
ablkcipher_request *req)
        return req->__ctx;
 }
 
+static inline void ablkcipher_request_complete(struct ablkcipher_request *req,
+                                              int err)
+{
+       req->base.complete(&req->base, err);
+}
+
 static inline int ablkcipher_tfm_in_queue(struct crypto_queue *queue,
                                          struct crypto_ablkcipher *tfm)
 {
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to