All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mkimage: allow to specify signing algorithm
@ 2021-11-25 19:03 Jan Kiszka
  2021-11-25 19:03 ` [PATCH 1/3] image-fit: Make string of algo parameter constant Jan Kiszka
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jan Kiszka @ 2021-11-25 19:03 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Simon Glass, Ivan Mikhaylov

Another step to decouple the FIT image specification from the actual
signing: With these changes, the signature nodes can leave out an algo
property, mkimage will initialize that as well while signing. This way,
in-tree FIT source files can be prepared for gaining signatures without
defining the key type or size upfront, forcing users to patch the code
to change that.

Patch 1 is preparatory for this, patch 2 a drive-by cleanup.

A better solution would actually be if the algorithm was derived from
the provided key. But the underlying crypto layer seems to be rather
unprepared for that.

Jan

Jan Kiszka (3):
  image-fit: Make string of algo parameter constant
  mkimage: Drop unused OPT_STRING constant
  mkimage: Allow to specify the signature algorithm on the command line

 boot/image-fit-sig.c |  2 +-
 boot/image-fit.c     |  8 +++----
 doc/mkimage.1        |  5 +++++
 include/image.h      |  5 +++--
 tools/fit_image.c    |  3 ++-
 tools/image-host.c   | 50 +++++++++++++++++++++++++-------------------
 tools/imagetool.h    |  1 +
 tools/mkimage.c      |  6 ++++--
 8 files changed, 49 insertions(+), 31 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-14  9:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 19:03 [PATCH 0/3] mkimage: allow to specify signing algorithm Jan Kiszka
2021-11-25 19:03 ` [PATCH 1/3] image-fit: Make string of algo parameter constant Jan Kiszka
2021-11-25 19:03 ` [PATCH 2/3] mkimage: Drop unused OPT_STRING constant Jan Kiszka
2021-11-25 19:03 ` [PATCH 3/3] mkimage: Allow to specify the signature algorithm on the command line Jan Kiszka
2022-01-13 12:38 ` [PATCH 0/3] mkimage: allow to specify signing algorithm Jan Kiszka
2022-01-13 13:40   ` Simon Glass
2022-01-13 23:28   ` Dhananjay Phadke
2022-01-14  9:21     ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.