To allow for child request context the struct akcipher_request child_req needs to be at the end of the structure.
Unified · Split
| @@ -102,10 +102,10 @@ struct pkcs1pad_inst_ctx { · 101 unmodified lines | |||
| 102 | }; | 102 | }; |
| 103 | 103 | ||
| 104 | struct pkcs1pad_request { | 104 | struct pkcs1pad_request { |
| 105 | struct akcipher_request child_req; | ||
| 106 | |||
| 107 | struct scatterlist in_sg[3], out_sg[2]; | 105 | struct scatterlist in_sg[3], out_sg[2]; |
| 108 | uint8_t *in_buf, *out_buf; | 106 | uint8_t *in_buf, *out_buf; |
| 107 | |||
| 108 | struct akcipher_request child_req; | ||
| 109 | }; | 109 | }; |
| 110 | 110 | ||
| 111 | static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, | 111 | static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, |