lkml.org 
[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3] crypto: caam - strip input without changing crypto request
Date
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@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>

Herbert,

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
invalid input
https://patchwork.kernel.org/patch/10944593/

Thanks,
Horia

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