Hi Horia,

On Fri, Apr 13, 2018 at 3:18 AM, Horia Geantă <horia.gea...@nxp.com> wrote:

> Stripping should happen before set_rsa_pub_pdb() is called since the Protocol
> Data Block contains the input length that is used by the accelerator:
>         pdb->f_len = req->src_len;
> It should probably be moved at the top of rsa_edesc_alloc().

That did the trick, thanks!

> Ideally stripping would avoid copying data (and memory allocation for 
> temporary
> buffers).

I will try to optimize this aspect and will post a proper patch.


Before I try to optimize it, I would like to share the patch
(generated against linux-next) so that you can try it in your IMA

Does it work for you?


Reply via email to