History

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.

Herbert Xu committed 10 years ago

Commit 87dcdeb1 parent 81dc0361 file · +2 −2Browse files

Unified · Split

crypto/rsa-pkcs1pad.c+2−2
@@ -102,10 +102,10 @@ struct pkcs1pad_inst_ctx { · 101 unmodified lines
102102 };
103103
104104 struct pkcs1pad_request {
105− struct akcipher_request child_req;
106−
107105 struct scatterlist in_sg[3], out_sg[2];
108106 uint8_t *in_buf, *out_buf;
107+
108+ struct akcipher_request child_req;
109109 };
110110
111111 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key,