csrypto: ccp - Expand RSA support for a v5 ccp
A version 5 CCP can handle an RSA modulus up to 16k bits. Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -1736,7 +1736,8 @@ static int ccp_run_rsa_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
|
||||
unsigned int sb_count, i_len, o_len;
|
||||
int ret;
|
||||
|
||||
if (rsa->key_size > CCP_RSA_MAX_WIDTH)
|
||||
/* Check against the maximum allowable size, in bits */
|
||||
if (rsa->key_size > cmd_q->ccp->vdata->rsamax)
|
||||
return -EINVAL;
|
||||
|
||||
if (!rsa->exp || !rsa->mod || !rsa->src || !rsa->dst)
|
||||
|
Reference in New Issue
Block a user