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
2016-09-16 17:03:39 -04:00
2016-10-19 09:01:51 +02:00
2016-11-14 23:24:03 +01:00
2016-05-03 17:52:11 -05:00
2016-07-22 09:52:59 -04:00
2016-06-10 13:44:58 -07: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-08-12 11:01:22 -06:00
2016-07-16 09:43:12 -04: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
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
2016-10-23 18:33:48 -04:00
2016-10-31 10:13:17 -04:00