U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Six <mario.six@gdsys.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/2] Fix signing problems with large keys
Date: Fri, 22 Jul 2016 08:58:39 +0200	[thread overview]
Message-ID: <20160722065841.18093-1-mario.six@gdsys.cc> (raw)

This patch series fixes a problem that occurs when signing FIT images with
large keys (e.g. RSA with 4096 bits).

Signing sometimes fails because of unexpected return values from
fit_add_file_data() and the functions called by it.

Some error messages are also removed, since we tolerate failure of the
corresponding functions.

This is probably related to 1152a05 ("tools: Correct error handling in
fit_image_process_hash()") and the corresponding error reported here:

https://www.mail-archive.com/u-boot at lists.denx.de/msg217417.html

Mario Six (2):
  tools: Fix return code of fit_image_process_sig()
  rsa: Fix return value and masked error

 lib/rsa/rsa-sign.c | 12 +++++++-----
 tools/image-host.c | 16 +++++++++++-----
 2 files changed, 18 insertions(+), 10 deletions(-)

--
2.9.0

             reply	other threads:[~2016-07-22  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22  6:58 Mario Six [this message]
2016-07-22  6:58 ` [U-Boot] [PATCH v2 1/2] tools: Fix return code of fit_image_process_sig() Mario Six
2016-07-26  2:31   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-07-22  6:58 ` [U-Boot] [PATCH v2 2/2] rsa: Fix return value and masked error Mario Six
2016-07-23  2:57   ` Simon Glass
2016-07-26  2:31   ` [U-Boot] [U-Boot, v2, " 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=20160722065841.18093-1-mario.six@gdsys.cc \
    --to=mario.six@gdsys.cc \
    --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