crypto: rsa-pkcs1pad - Fix regression from leading zeros
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 3 Jul 2016 02:46:11 +0000 (10:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 3 Jul 2016 07:44:56 +0000 (15:44 +0800)
commit27710b8ea3defcbd7d340dbd0423d911b4eb7c4f
tree02e55d5dac1b26f47137b59ae51bc0fbab69e392
parent98eca72fa04a9bbf28dba95efaec5aa95588fe23
crypto: rsa-pkcs1pad - Fix regression from leading zeros

As the software RSA implementation now produces fixed-length
output, we need to eliminate leading zeros in the calling code
instead.

This patch does just that for pkcs1pad signature verification.

Fixes: 9b45b7bba3d2 ("crypto: rsa - Generate fixed-length output")
Reported-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c