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

Thanks,
Horia

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