public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Romain Izard <romain.izard.pro@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Limitations/Considerations when programming U-Boot
Date: Thu, 16 May 2013 08:13:29 +0000 (UTC)	[thread overview]
Message-ID: <kn24f9$a7$1@ger.gmane.org> (raw)
In-Reply-To: 51934F9C.1090608@bytesatwork.ch

On 2013-05-15, Oliver St?bler <oliver.staebler@bytesatwork.ch> wrote:
>
> I'm currently investigating the possibility of using a cryptographic
> library in U-Boot to verify signatures during a fatload (or similar).
>
You should take a look at Simon Glass's Verified Boot patchset, as it
has the same objectives.
http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/156422

While the patchset is not currently integrated in the mainline, from my
understanding it is still in progress, and the goal is to get it done
for the next release, expected to be 2013.07.

You can help in testing and giving feedback to the existing patchset,
and do so when newer versions will be posted.

> So my question is, what has to be considered when choosing a crypto library?
>
> As far as I understood so far, U-Boot only implements a part of the C 
> Standard Library. So this has to be considered, right?
>
As crypto is usually very self-contained, it should not be a problem.

> The README mentions that the stack space is very limited. Is this still 
> the case when the "shell" is loaded or is this just the case during
> initialization?
> If so, this means for a crypto library that it should not do a lot in 
> the stack, but prefer heap space?
> Then again, are there any boundaries in using heap? Maybe increase 
> CONFIG_SYS_MALLOC_LEN?
>
> Is there anything else I have to consider?

License compatibility is a point you must consider. U-Boot as a whole is
GPLv2 (only), and you cannot include code with an incompatible license.

-- 
Romain Izard

      reply	other threads:[~2013-05-16  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  9:04 [U-Boot] Limitations/Considerations when programming U-Boot Oliver Stäbler
2013-05-16  8:13 ` Romain Izard [this message]

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='kn24f9$a7$1@ger.gmane.org' \
    --to=romain.izard.pro@gmail.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