[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] crypto: caam - fix pkcs1pad input without changing crypto request
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.


 \ /
  Last update: 2019-05-15 08:53    [W:0.045 / U:39.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site