]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: testmgr - Fix incorrect values in PKCS#1 test vector
authorConor McLoughlin <conor.mcloughlin@intel.com>
Tue, 13 Feb 2018 08:29:56 +0000 (08:29 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 9 Apr 2018 13:41:59 +0000 (10:41 -0300)
commit68049cb690e366507ccb61dc88cf71f958d397ba
tree158de18d8db5964478aa2c8101747076b9c03005
parent4c86975b32470a858fa123a4beffeab697c64e2a
crypto: testmgr - Fix incorrect values in PKCS#1 test vector

BugLink: http://bugs.launchpad.net/bugs/1762370
commit 333e18c5cc74438f8940c7f3a8b3573748a371f9 upstream.

The RSA private key for the first form should have
version, prime1, prime2, exponent1, exponent2, coefficient
values 0.
With non-zero values for prime1,2, exponent 1,2 and coefficient
the Intel QAT driver will assume that values are provided for the
private key second form. This will result in signature verification
failures for modules where QAT device is present and the modules
are signed with rsa,sha256.

Cc: <stable@vger.kernel.org>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Conor McLoughlin <conor.mcloughlin@intel.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
crypto/testmgr.h