]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: ccp - Fix handling of RSA exponent on a v5 device
authorGary R Hook <gary.hook@amd.com>
Tue, 1 Nov 2016 19:05:05 +0000 (14:05 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 13 Nov 2016 09:44:59 +0000 (17:44 +0800)
commite6414b13ea39e3011901a84eb1bdefa65610b0f8
tree52c50e2e9cdb102d86ae5a956b0bec84af084ec7
parent89277a7d0ed49344be44e5383e56b10a1203f0c3
crypto: ccp - Fix handling of RSA exponent on a v5 device

The exponent size in the ccp_op structure is in bits. A v5
CCP requires the exponent size to be in bytes, so convert
the size from bits to bytes when populating the descriptor.

The current code references the exponent in memory, but
these fields have not been set since the exponent is
actually store in the LSB. Populate the descriptor with
the LSB location (address).

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