Skip to content

Commit

Permalink
[CRYPTO] skcipher: Added skcipher_givcrypt_complete
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Jan 10, 2008
1 parent 7f47073 commit 15c6728
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/crypto/internal/skcipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 15c6728

Please sign in to comment.