Skip to content

Commit

Permalink
crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tadeusz Struk authored and Herbert Xu committed Jul 19, 2016
1 parent ac02725 commit a6d7bfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/rsa-pkcs1pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a6d7bfd

Please sign in to comment.