Files
u-boot/include
Andrew Duda da29f2991d rsa: Verify RSA padding programatically
Padding verification was done against static SHA/RSA pair arrays which
take up a lot of static memory, are mostly 0xff, and cannot be reused
for additional SHA/RSA pairings. The padding can be easily computed
according to PKCS#1v2.1 as:

  EM = 0x00 || 0x01 || PS || 0x00 || T

where PS is (emLen - tLen - 3) octets of 0xff and T is DER encoding
of the hash.

Store DER prefix in checksum_algo and create rsa_verify_padding
function to handle verification of a message for any SHA/RSA pairing.

Signed-off-by: Andrew Duda <aduda@meraki.com>
Signed-off-by: aduda <aduda@meraki.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-11-21 14:07:30 -05:00
..
2016-04-01 17:18:12 -04:00
2016-08-20 11:35:07 -04:00
2016-03-22 12:16:13 -04:00
2016-03-24 09:47:43 +01:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2015-06-10 19:26:54 -06:00
2016-01-20 19:06:23 -07:00
2016-09-16 17:03:39 -04:00
2016-10-19 09:01:51 +02:00
2009-01-24 00:23:09 +01:00
2016-02-23 16:14:45 +05:30
2016-01-19 08:31:21 -05:00
2015-04-10 14:23:23 +02:00
2016-11-14 23:24:03 +01:00
2016-05-03 17:52:11 -05:00
2016-01-28 12:22:19 -06:00
2016-01-27 15:55:54 +01:00
2016-01-19 08:31:21 -05:00
2016-07-22 09:52:59 -04:00
2016-06-10 13:44:58 -07:00
2001-11-03 22:15:16 +00:00
2016-10-23 12:08:48 -07:00
2016-06-19 17:05:55 -06:00
2016-06-19 17:05:55 -06:00
2016-03-08 15:01:47 -05:00
2016-08-12 11:01:22 -06:00
2016-01-20 10:19:40 -05:00
2013-11-09 17:21:01 +01:00
2016-07-16 09:43:12 -04:00
2016-01-21 20:42:36 -07:00
2016-02-05 12:47:21 +08:00
2016-03-15 15:19:23 -04:00
2016-01-21 20:42:36 -07:00
2016-01-21 20:42:34 -07:00
2008-10-18 21:54:03 +02:00
2015-07-21 17:39:27 -06:00
2008-05-21 00:14:08 +02:00
2016-03-14 15:34:50 -06:00
2016-08-17 10:25:35 +09:00
2016-10-19 09:01:52 +02:00
2016-09-22 01:02:28 +05:30
2016-10-06 15:08:55 -04:00
2016-05-26 20:48:31 -06:00
2012-05-15 08:31:40 +02:00
2015-07-26 12:11:33 +02:00
2016-02-26 08:53:10 -07:00
2016-09-26 13:24:43 -04:00
2016-05-17 09:54:43 -06:00
2016-05-02 18:37:09 -04:00
2016-10-12 10:56:51 +08:00
2008-05-21 00:14:08 +02:00
2016-10-23 18:33:48 -04:00
2008-05-21 00:14:08 +02:00
2016-10-31 10:13:17 -04:00