Re: [PATCH v3] crypto: caam - strip input without changing crypto request
From: Horia Geanta
Date: Wed May 15 2019 - 10:25:55 EST
On 5/15/2019 5:01 PM, Iuliana Prodan wrote:
> For rsa and pkcs1pad, CAAM expects an input of modulus size.
> For this we strip the leading zeros in case the size is more than modulus.
> This commit avoids modifying the crypto request while stripping zeros from
> input, to comply with the crypto API requirement. This is done by adding
> a fixup input pointer and length.
> Signed-off-by: Iuliana Prodan <iuliana.prodan@xxxxxxx>
Reviewed-by: Horia Geantă <horia.geanta@xxxxxxx>
Just to avoid any confusion, this should be applied on top of
[v2,1/2] crypto: caam - fix pkcs1pad(rsa-caam, sha256) failure because of