Message ID | 20240219172530.20517-1-akhilrajeev@nvidia.com |
---|---|
Headers | show |
Series | Add Tegra Security Engine driver | expand |
> + > +static int tegra_sha_export(struct ahash_request *req, void *out) > +{ > + struct tegra_sha_reqctx *rctx = ahash_request_ctx(req); > + struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); > + struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); > + int i; > + > + if (ctx->fallback) > + return tegra_sha_fallback_export(req, out); > + > + memcpy(out, rctx, sizeof(*rctx)); > + > + return 0; > +} > + > +static int tegra_sha_import(struct ahash_request *req, const void *in) > +{ > + struct tegra_sha_reqctx *rctx = ahash_request_ctx(req); > + struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); > + struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); > + int i; Got a warning from testbot for an unused variable here as well as in the export() function. I will fix that in the next revision. Do we have any other concerns with the driver currently, which I can address in the next revision? Regards, Akhil
On Thu, Feb 29, 2024 at 09:20:48AM +0000, Akhil R wrote: > > Do we have any other concerns with the driver currently, which I can address > in the next revision? The sha export/import code looks good now. Does it pass all the self-tests, including extra fuzzing? The same export/import issue still exists with cmac so please fix that. Thanks,
> > > > Do we have any other concerns with the driver currently, which I can > > address in the next revision? > > The sha export/import code looks good now. Does it pass all the self-tests, > including extra fuzzing? > > The same export/import issue still exists with cmac so please fix that. > I do see some warnings for some AES algorithms with extra fuzzing. Will send a new version with the CMAC import/export update and the extra fuzzing warning fixes. Thanks, Akhil