projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ba46c7
)
crypto: Add akcipher_set_reqsize() function
author
Gary R Hook
<gary.hook@amd.com>
Mon, 17 Jul 2017 20:16:21 +0000
(15:16 -0500)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 28 Jul 2017 09:58:04 +0000
(17:58 +0800)
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/akcipher.h
patch
|
blob
|
blame
|
history
diff --git
a/include/crypto/internal/akcipher.h
b/include/crypto/internal/akcipher.h
index 479a0078f0f701b4d988e1651476e05e1210d761..805686ba2be47969213cf1f6a1547bbfcab77186 100644
(file)
--- a/
include/crypto/internal/akcipher.h
+++ b/
include/crypto/internal/akcipher.h
@@
-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;