Skip to content

Commit

Permalink
crypto: Add akcipher_set_reqsize() function
Browse files Browse the repository at this point in the history
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Gary R Hook authored and Herbert Xu committed Jul 28, 2017
1 parent 6ba46c7 commit 333706b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/crypto/internal/akcipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 333706b

Please sign in to comment.