From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot,2/4] rsa: Verify RSA padding programatically
Date: Mon, 21 Nov 2016 21:55:22 -0500 [thread overview]
Message-ID: <20161122025522.GC2546@bill-the-cat> (raw)
In-Reply-To: <010101584549e4bc-5b633e70-c111-41b7-a59e-ace2517755ef-000000@us-west-2.amazonses.com>
On Tue, Nov 08, 2016 at 06:53:40PM +0000, aduda wrote:
> From: Andrew Duda <aduda@meraki.com>
>
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161121/84dc47cd/attachment.sig>
next prev parent reply other threads:[~2016-11-22 2:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20161108185329.56774-1-aduda@meraki.com>
2016-11-08 18:53 ` [U-Boot] [PATCH 2/4] rsa: Verify RSA padding programatically aduda
2016-11-11 16:17 ` Simon Glass
2016-11-11 21:22 ` Andrew Duda
2016-11-14 19:04 ` Simon Glass
2016-11-22 2:55 ` Tom Rini [this message]
2016-11-08 18:53 ` [U-Boot] [PATCH 4/4] image: Combine image_sig_algo with image_sign_info aduda
2016-11-11 16:17 ` Simon Glass
2016-11-22 2:55 ` [U-Boot] [U-Boot, " Tom Rini
2016-11-08 18:53 ` [U-Boot] [PATCH 3/4] image: Add crypto_algo struct for RSA info aduda
2016-11-11 16:17 ` Simon Glass
2016-11-22 2:56 ` [U-Boot] [U-Boot, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161122025522.GC2546@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox