projects
/
GitHub
/
LineageOS
/
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:
ac02725
)
crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct
author
Tadeusz Struk
<tadeusz.struk@intel.com>
Fri, 15 Jul 2016 03:39:18 +0000
(20:39 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 19 Jul 2016 04:01:47 +0000
(12:01 +0800)
To allow for child request context the struct akcipher_request child_req
needs to be at the end of the structure.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/rsa-pkcs1pad.c
b/crypto/rsa-pkcs1pad.c
index 880d3db57a252544fe416691408f73b18f1bd224..877019a6d3ea81c3e130deb882e5ceccb1fe62ae 100644
(file)
--- a/
crypto/rsa-pkcs1pad.c
+++ b/
crypto/rsa-pkcs1pad.c
@@
-101,10
+101,9
@@
struct pkcs1pad_inst_ctx {
};
struct pkcs1pad_request {
- struct akcipher_request child_req;
-
struct scatterlist in_sg[2], out_sg[1];
uint8_t *in_buf, *out_buf;
+ struct akcipher_request child_req;
};
static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key,