Dmitry Kasatkin
bc01637a80
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>
2012-09-13 09:13:02 +08:00
..
2012-05-26 11:51:03 +10:00
2012-05-28 14:10:22 +10:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:16 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-05-29 16:22:32 -07:00
2012-03-07 15:04:04 -05:00
2012-06-07 14:43:55 -07:00
2012-01-26 21:28:45 +01:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-02-02 10:34:23 +11:00
2012-03-07 15:04:04 -05:00
2011-10-29 21:20:22 +02:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:22 -07:00
2012-03-28 17:14:35 -07:00
2012-07-30 17:25:17 -07:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-04-18 13:38:48 +02:00
2012-03-07 15:04:04 -05:00
2011-12-06 10:00:05 +01:00
2011-12-06 09:53:40 +01:00
2012-01-12 20:13:13 -08:00
2012-03-07 15:04:04 -05:00
2012-09-13 09:13:02 +08:00
2012-06-28 11:51:39 +02:00
2012-07-02 12:11:40 +02:00
2012-03-07 15:04:04 -05:00
2012-05-07 16:47:32 -07:00
2012-05-31 18:18:17 -04:00
2012-06-20 14:39:36 -07:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-06-09 08:37:55 +09:00
2012-03-07 15:04:04 -05:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-05-02 00:04:06 -07:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:34 -07:00
2012-07-30 17:25:22 -07:00
2012-04-19 19:17:30 -07:00
2012-06-29 16:46:02 -07:00
2012-05-07 16:51:19 -07:00
2012-03-07 15:04:04 -05:00
2011-10-31 17:30:56 -07:00
2012-03-07 15:04:04 -05:00
2012-07-06 06:01:49 -07:00
2012-03-28 15:58:21 -07:00
2012-03-07 15:04:04 -05:00
2012-07-30 22:14:04 -07:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:22 -07:00
2012-07-30 17:25:16 -07:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:22 -07:00
2012-07-30 17:25:22 -07:00
2012-03-07 15:04:04 -05:00
2012-01-31 23:19:47 +02:00
2012-07-31 09:28:31 +04:00
2012-02-29 17:15:08 -05:00
2012-07-30 17:25:22 -07:00
2012-03-23 16:58:36 -07:00
2012-07-30 17:25:22 -07:00
2012-06-05 10:46:40 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-05-17 15:18:37 +02:00
2012-03-07 15:04:04 -05:00
2011-12-08 19:52:43 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:34 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:16 -07:00
2012-04-20 23:27:08 +02:00
2012-05-29 16:22:32 -07:00
2012-03-24 10:24:31 -07:00
2012-05-26 11:33:40 -07:00
2012-05-27 20:59:46 -07:00
2012-05-29 16:22:21 -07:00
2012-03-07 15:04:04 -05:00
2012-05-29 16:22:32 -07:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-07-30 17:25:14 -07:00