[CRYPTO] skcipher: Added skcipher_givcrypt_complete
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Nov 2007 09:17:28 +0000 (20:17 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:45 +0000 (08:16 +1100)
This patch adds the helper skcipher_givcrypt_complete which should be
called when an ablkcipher algorithm has completed a givcrypt request.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/skcipher.h

index 07e7c82..80c5bfb 100644 (file)
@@ -74,5 +74,17 @@ static inline void *skcipher_givcrypt_reqctx(
        return ablkcipher_request_ctx(&req->creq);
 }
 
+static inline void ablkcipher_request_complete(struct ablkcipher_request *req,
+                                              int err)
+{
+       req->base.complete(&req->base, err);
+}
+
+static inline void skcipher_givcrypt_complete(
+       struct skcipher_givcrypt_request *req, int err)
+{
+       ablkcipher_request_complete(&req->creq, err);
+}
+
 #endif /* _CRYPTO_INTERNAL_SKCIPHER_H */