2020-02-11 10:23:57

by Horia Geanta

[permalink] [raw]
Subject: Re: [PATCH v5 8/9] crypto: caam - add crypto_engine support for RSA algorithms

On 1/30/2020 2:49 AM, Iuliana Prodan wrote:
> @@ -1029,6 +1107,10 @@ static int caam_rsa_init_tfm(struct crypto_akcipher *tfm)
> return -ENOMEM;
> }
>
> + ctx->enginectx.op.do_one_request = akcipher_do_one_req;
> +
> + akcipher_set_reqsize(tfm, sizeof(struct caam_rsa_req_ctx));
This is redundant with the static initialization of caam_rsa:
.reqsize = sizeof(struct caam_rsa_req_ctx),

Horia