Home
last modified time | relevance | path

Searched hist:bc01637a (Results 1 – 1 of 1) sorted by relevance

/linux/lib/
H A Ddigsig.cbc01637a Wed Sep 12 10:26:55 GMT 2012 Dmitry Kasatkin <dmitry.kasatkin@intel.com> 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 <dmitry.kasatkin@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>