]> git.baikalelectronics.ru Git - kernel.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)
commit552a582c638dd96c1309ce78c3175795695d7d05
tree52c50e2e9cdb102d86ae5a956b0bec84af084ec7
parentf36cffd6dbdf9fb1ae2242bebe46a4970a0b0c42
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