diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2016-07-14 23:39:18 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-19 00:01:47 -0400 |
commit | a6d7bfd0ff21f258913dd5e626d2bd70ab3942df (patch) | |
tree | 85410cac9f638259aaffaec10237aa25925b2dea /crypto | |
parent | ac02725812cb3a814cfe1fdc2a8a59db073e7e66 (diff) |
crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rsa-pkcs1pad.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/rsa-pkcs1pad.c b/crypto/rsa-pkcs1pad.c index 880d3db57a25..877019a6d3ea 100644 --- a/crypto/rsa-pkcs1pad.c +++ b/crypto/rsa-pkcs1pad.c | |||
@@ -101,10 +101,9 @@ struct pkcs1pad_inst_ctx { | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | struct pkcs1pad_request { | 103 | struct pkcs1pad_request { |
104 | struct akcipher_request child_req; | ||
105 | |||
106 | struct scatterlist in_sg[2], out_sg[1]; | 104 | struct scatterlist in_sg[2], out_sg[1]; |
107 | uint8_t *in_buf, *out_buf; | 105 | uint8_t *in_buf, *out_buf; |
106 | struct akcipher_request child_req; | ||
108 | }; | 107 | }; |
109 | 108 | ||
110 | static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, | 109 | static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, |