aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/crypto/internal/skcipher.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/crypto/internal/skcipher.h b/include/crypto/internal/skcipher.h
index 07e7c82324ad..80c5bfb14a60 100644
--- a/include/crypto/internal/skcipher.h
+++ b/include/crypto/internal/skcipher.h
@@ -74,5 +74,17 @@ static inline void *skcipher_givcrypt_reqctx(
74 return ablkcipher_request_ctx(&req->creq); 74 return ablkcipher_request_ctx(&req->creq);
75} 75}
76 76
77static inline void ablkcipher_request_complete(struct ablkcipher_request *req,
78 int err)
79{
80 req->base.complete(&req->base, err);
81}
82
83static inline void skcipher_givcrypt_complete(
84 struct skcipher_givcrypt_request *req, int err)
85{
86 ablkcipher_request_complete(&req->creq, err);
87}
88
77#endif /* _CRYPTO_INTERNAL_SKCIPHER_H */ 89#endif /* _CRYPTO_INTERNAL_SKCIPHER_H */
78 90