Re: [PATCH 2/2] crypto: caam - fix pkcs1pad input without changing crypto request
From: Horia Geanta
Date: Wed May 15 2019 - 02:54:49 EST
On 5/14/2019 7:45 PM, Iuliana Prodan wrote:
> For pkcs1pad(rsa-caam, sha256), CAAM expects an input of modulus size. For
> this we strip the leading zeros in case the size is more than modulus or
> pad the input with zeros until the modulus size is reached.
> This commit avoids modifying the crypto request while striping zeros from
> input, to comply with the crypto API requirement. This is done by adding
> a fixup input pointer and length.
This fix is not specific to pkcs1pad, it applies even to textbook / raw rsa.
Pleas rephrase the commit message accordingly.