]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: testmgr - Allow leading zeros in RSA
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 11:32:20 +0000 (19:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:12 +0000 (23:45 +0800)
commit50d2b643ea6675927435743633a57c2a9cfd8d83
tree46238fecd4c3440709cb36da5f8775ec79fd5bee
parent1503a24f53f153f8c88be9810bc73efaf6853e1c
crypto: testmgr - Allow leading zeros in RSA

This patch allows RSA implementations to produce output with
leading zeroes.  testmgr will skip leading zeroes when comparing
the output.

This patch also tries to make the RSA test function generic enough
to potentially handle other akcipher algorithms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c