From: Dmitry Kasatkin Date: Wed, 12 Sep 2012 10:26:55 +0000 (+0300) Subject: digsig: add hash size comparision on signature verification X-Git-Tag: v3.6-rc6~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc01637a80f5b670bd70a0279d3f93fa8de1c96d;p=pandora-kernel.git digsig: add hash size comparision on signature verification When pkcs_1_v1_5_decode_emsa() returns without error and hash sizes do not match, hash comparision is not done and digsig_verify_rsa() returns no error. This is a bug and this patch fixes it. The bug was introduced in v3.3 by commit b35e286a640f ("lib/digsig: pkcs_1_v1_5_decode_emsa cleanup"). Cc: stable@vger.kernel.org Signed-off-by: Dmitry Kasatkin Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed