Files
u-boot-bpi-r3/lib
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-02-06 12:00:59 +01:00
2016-01-19 08:31:21 -05:00
2011-01-18 23:38:08 +01:00
2016-04-11 20:48:26 -04:00
2016-05-02 18:37:09 -04:00
2016-10-19 09:01:52 +02:00
2014-10-25 07:02:01 -04:00
2012-04-29 14:14:08 +02:00
2015-07-21 17:39:28 -06:00
2016-11-21 14:07:30 -05:00
2016-10-19 09:01:53 +02:00
2016-06-06 13:39:18 -04:00
2016-10-11 11:55:33 +08:00
2016-02-26 08:53:10 -07:00