diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 17:47:52 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-13 10:31:36 +0800 |
commit | 21b7013414db320be418d5f28f72af5c0665dc18 (patch) | |
tree | ed67c641a7cb32de4ea0d7e892d2606b381250df /include/crypto | |
parent | add86d55768e5e301be38b2961df35f26f9d5fbe (diff) | |
download | linux-stable-21b7013414db320be418d5f28f72af5c0665dc18.tar.gz linux-stable-21b7013414db320be418d5f28f72af5c0665dc18.tar.bz2 linux-stable-21b7013414db320be418d5f28f72af5c0665dc18.zip |
crypto: aead - Add crypto_aead_set_reqsize helper
This patch adds the helper crypto_aead_set_reqsize so that people
don't have to directly access the aead internals to set the reqsize.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/aead.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index 2eba340230a7..750948cf4621 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h @@ -78,5 +78,11 @@ static inline void aead_givcrypt_complete(struct aead_givcrypt_request *req, aead_request_complete(&req->areq, err); } +static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, + unsigned int reqsize) +{ + crypto_aead_crt(aead)->reqsize = reqsize; +} + #endif /* _CRYPTO_INTERNAL_AEAD_H */ |