]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: testmgr - some more fixes to RSA test vectors
authorIgnat Korchagin <ignat@cloudflare.com>
Sun, 17 Jul 2022 13:37:46 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:48 +0000 (12:50 +0100)
commite290d1fe37f79bbddf4e5738a677cc403cd5f689
tree04608e4457ba7e0725edd4cce30f4114d77815d1
parentadd54f9639388aaeac827f4bfd5be78a6aabce3d
crypto: testmgr - some more fixes to RSA test vectors

[ Upstream commit 9d2bb9a74b2877f100637d6ab5685bcd33c69d44 ]

Two more fixes:

  * some test vectors in commit 79e6e2f3f3ff ("crypto: testmgr - populate
    RSA CRT parameters in RSA test vectors") had misplaced commas, which
    break the test and trigger KASAN warnings at least on x86-64

  * pkcs1pad test vector did not have its CRT parameters

Fixes: 79e6e2f3f3ff ("crypto: testmgr - populate RSA CRT parameters in RSA test vectors")
Reported-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Ignat Korchagin <ignat@cloudflare.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/testmgr.h