Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15c67286 authored by Herbert Xu's avatar Herbert Xu
Browse files

[CRYPTO] skcipher: Added skcipher_givcrypt_complete



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

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7f470739
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 */