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

Commit 333706b8 authored by Gary R Hook's avatar Gary R Hook Committed by Herbert Xu
Browse files

crypto: Add akcipher_set_reqsize() function

parent 6ba46c7d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -38,6 +38,12 @@ static inline void *akcipher_request_ctx(struct akcipher_request *req)
	return req->__ctx;
}

static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher,
					unsigned int reqsize)
{
	crypto_akcipher_alg(akcipher)->reqsize = reqsize;
}

static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm)
{
	return tfm->base.__crt_ctx;