We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d81f50b commit 94de8a3Copy full SHA for 94de8a3
drivers/crypto/xilinx/xilinx-rsa.c
@@ -394,7 +394,9 @@ static int xilinx_rsa_init(struct crypto_akcipher *tfm)
394
return PTR_ERR(tfm_ctx->fbk_cipher);
395
}
396
397
- akcipher_set_reqsize(tfm, sizeof(struct xilinx_rsa_req_ctx));
+ akcipher_set_reqsize(tfm, max(sizeof(struct xilinx_rsa_req_ctx),
398
+ sizeof(struct akcipher_request) +
399
+ crypto_akcipher_reqsize(tfm_ctx->fbk_cipher)));
400
401
return 0;
402
0 commit comments