crypto: ccp - set max RSA modulus size for v3 platform devices as well
commit5.4-rM2-2.2.x-imx-squashed11548f5a57
upstream. AMD Seattle incorporates a non-PCI version of the v3 CCP crypto accelerator, and this version was left behind when the maximum RSA modulus size was parameterized in order to support v5 hardware which supports larger moduli than v3 hardware does. Due to this oversight, RSA acceleration no longer works at all on these systems. Fix this by setting the .rsamax property to the appropriate value for v3 platform hardware. Fixes:e28c190db6
("csrypto: ccp - Expand RSA support for a v5 ccp") Cc: Gary R Hook <gary.hook@amd.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
58d8f2dec6
commit
3a35871603
|
@ -586,6 +586,7 @@ const struct ccp_vdata ccpv3_platform = {
|
||||||
.setup = NULL,
|
.setup = NULL,
|
||||||
.perform = &ccp3_actions,
|
.perform = &ccp3_actions,
|
||||||
.offset = 0,
|
.offset = 0,
|
||||||
|
.rsamax = CCP_RSA_MAX_WIDTH,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct ccp_vdata ccpv3 = {
|
const struct ccp_vdata ccpv3 = {
|
||||||
|
|
Loading…
Reference in New Issue