]> 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)
commit02681193e01cf4708f45a92d36649531dd731ccf
tree52c50e2e9cdb102d86ae5a956b0bec84af084ec7
parent435e05ebf4ef1e83eed96dba6079b036c7364f19
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