]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jul 2022 08:22:04 +0000 (16:22 +0800)
commit2e01b94d913ae24f2330202511ee90572bd5967f
tree66839a7ff0820da0674e752ecb4ec56ccfaef50a
parent52e7b4256913ef13aca1ffd98fc13af23e7c237f
crypto: testmgr - some more fixes to RSA test vectors

Two more fixes:

  * some test vectors in commit 83b6c56567db ("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: 83b6c56567db ("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>
crypto/testmgr.h