crypto: ccp - Fix base RSA function for version 5 CCPs
authorGary R Hook <gary.hook@amd.com>
Mon, 17 Jul 2017 20:16:13 +0000 (15:16 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2017 09:58:02 +0000 (17:58 +0800)
commit6ba46c7d4d7e2b4f38c9d9891dee4ba1f5338f31
tree7f8dabbcc83c52a1d569f6219e76c71cf57b1fb9
parent68cc652f83b9a4f79471db6c79ae0bfe5175eda3
crypto: ccp - Fix base RSA function for version 5 CCPs

Version 5 devices have requirements for buffer lengths, as well as
parameter format (e.g. bits vs. bytes). Fix the base CCP driver
code to meet requirements all supported versions.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-ops.c