Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Commit

Permalink
crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct
Browse files Browse the repository at this point in the history
commit 87dcdeb upstream.

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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
herbertx authored and gregkh committed Jul 27, 2016
1 parent 4f024de commit 16d5fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/rsa-pkcs1pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ struct pkcs1pad_inst_ctx {
};

struct pkcs1pad_request {
struct akcipher_request child_req;

struct scatterlist in_sg[3], out_sg[2];
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 16d5fa5

Please sign in to comment.