2007-11-22 09:02:34

by Herbert Xu

[permalink] [raw]
Subject: [PATCH 6/11] [CRYPTO] ablkcipher: Added ablkcipher_request_complete

[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)
{