diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-22 17:04:57 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-22 17:42:08 +0800 |
commit | 0cf43f509f72128196e23f5ade7e512a72152cc6 (patch) | |
tree | 093421f3aa73817b2d0f46fcd06cd9c56c849c94 /include/crypto | |
parent | 456bee986e0a372ad4beed5d3cedb3622633d9df (diff) | |
download | linux-0cf43f509f72128196e23f5ade7e512a72152cc6.tar.gz linux-0cf43f509f72128196e23f5ade7e512a72152cc6.tar.xz |
crypto: rsa-pkcs1pad - Handle leading zero for decryption
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 decryption while signature
verification was fixed in an earlier patch.
Fixes: 9b45b7bba3d2 ("crypto: rsa - Generate fixed-length output")
Reported-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
0 files changed, 0 insertions, 0 deletions