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
102};102};
103 103
104struct pkcs1pad_request {104struct 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
111static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key,111static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key,