Re: [PATCH] crypto: caam - strip input zeros from RSA input buffer

2018-04-20 Thread Herbert Xu
On Mon, Apr 16, 2018 at 12:34:45PM +0300, Horia Geantă wrote: > Sometimes the provided RSA input buffer provided is not stripped > of leading zeros. This could cause its size to be bigger than that > of the modulus, making the HW complain: > > caam_jr 2142000.jr1: 4789: DECO: desc idx 7: > Pro

Re: [PATCH] crypto: caam - strip input zeros from RSA input buffer

2018-04-16 Thread Martin Townsend
On Mon, Apr 16, 2018 at 10:34 AM, Horia Geantă wrote: > Sometimes the provided RSA input buffer provided is not stripped > of leading zeros. This could cause its size to be bigger than that > of the modulus, making the HW complain: > > caam_jr 2142000.jr1: 4789: DECO: desc idx 7: > Protocol Si