]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: testmgr - fix version number of RSA tests
authorlei he <helei.sig11@bytedance.com>
Fri, 24 Jun 2022 10:06:25 +0000 (18:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:47 +0000 (12:50 +0100)
commit40689219a28bfcba76b87e7b641795a91e151677
tree99580d7911f6df26fe80a8841cdf604a9003413f
parentbd258be9a8becffcf9c82a80f9ee1794832ba701
crypto: testmgr - fix version number of RSA tests

[ Upstream commit 0bb8f125253843c445b70fc6ef4fb21aa7b25625 ]

According to PKCS#1 standard, the 'otherPrimeInfos' field contains
the information for the additional primes r_3, ..., r_u, in order.
It shall be omitted if the version is 0 and shall contain at least
one instance of OtherPrimeInfo if the version is 1, see:
https://www.rfc-editor.org/rfc/rfc3447#page-44

Replace the version number '1' with 0, otherwise, some drivers may
not pass the run-time tests.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/testmgr.h