summaryrefslogtreecommitdiffstats
path: root/arch/arm64/crypto/sha1-ce-glue.c
diff options
context:
space:
mode:
authorIuliana Prodan2019-05-28 11:52:11 +0200
committerHerbert Xu2019-06-06 08:38:57 +0200
commit3b2614cb864d4114250f043ce6ff94e152198ae5 (patch)
tree937f713b44e07c5d3ef54e03b3fff0506ac0eb03 /arch/arm64/crypto/sha1-ce-glue.c
parentcrypto: caam - fix pkcs1pad(rsa-caam, sha256) failure because of invalid input (diff)
downloadkernel-qcow2-linux-3b2614cb864d4114250f043ce6ff94e152198ae5.tar.gz
kernel-qcow2-linux-3b2614cb864d4114250f043ce6ff94e152198ae5.tar.xz
kernel-qcow2-linux-3b2614cb864d4114250f043ce6ff94e152198ae5.zip
crypto: caam - strip input without changing crypto request
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 Geanta <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto/sha1-ce-glue.c')
0 files changed, 0 insertions, 0 deletions