]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4134cfb5aee5400726d47c5a1649193b28bdf48
tree02e55d5dac1b26f47137b59ae51bc0fbab69e392
parent33743e3f155ba238b6c7c45fa63f29ee447c6b10
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: 5a98e4349ba8 ("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