crypto: ccp - Do not sign extend input data to CCP
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 30 Jul 2014 20:41:32 +0000 (15:41 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Aug 2014 14:36:13 +0000 (22:36 +0800)
commit6391723293bb55f05b43973bbbc7a06822b50555
tree7135736b047b64fbdba25688a06f45ca6e5c5bff
parent2fc0d258bc5f88de31d1d2e239a3521e2a6535f8
crypto: ccp - Do not sign extend input data to CCP

The CCP hardware interprets all numbers as unsigned numbers, therefore
sign extending input data is not valid.  Modify the function calls
for RSA and ECC to not perform sign extending.

This patch is based on the cryptodev-2.6 kernel tree.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c