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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:32 +0000 (22:16 +0800)
commit333e18c5cc74438f8940c7f3a8b3573748a371f9
tree41e57210745fa8e83ff74d964e8aff5de2d11882
parent57240a78be90d0ecdf6956e925d673bbcced5c32
crypto: testmgr - Fix incorrect values in PKCS#1 test vector

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>
crypto/testmgr.h