projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add86d5
)
crypto: aead - Add crypto_aead_set_reqsize helper
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 11 May 2015 09:47:52 +0000
(17:47 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:36 +0000
(10:31 +0800)
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>
include/crypto/internal/aead.h
patch
|
blob
|
history
diff --git
a/include/crypto/internal/aead.h
b/include/crypto/internal/aead.h
index
2eba340
..
750948c
100644
(file)
--- 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 */