[U-Boot] [PATCH 0/7] common, fit, rsa: enhancements

Heiko Schocher hs at denx.de
Sat Jan 25 07:44:22 CET 2014


- add sha256,rsa2048 and sha256,rsa4098 support to u-boot.
- add "fdt sign" command to u-boot cmdshell. This command
  checks, if a fdt is correct signed.
- add hosttool "fit_info" which prints the offset and
  the len of a property from in a fdt file. This
  values can be used, to extract the data from a property
  (for example with "dd")
- add hosttool "fit_check_sign". This does the same as
  the u-boot cmdshell tool "fdt sign". It checks, if
  fit image is correct signed

Heiko Schocher (7):
  tools/image-host: fix sign-images bug
  fdt: add "fdt sign" command
  fit: add sha256 support
  rsa: add sha256-rsa2048 algorithm
  rsa: add sha256,rsa4096 algorithm
  tools, fit: add fit_info host command
  tools, fit_check_sign: verify a signed fit image

 Makefile               |   2 +
 common/cmd_fdt.c       |  38 +++++++++++-
 common/image-fit.c     |   5 ++
 common/image-sig.c     |  66 ++++++++++++++++++++
 include/fdt_support.h  |   5 ++
 include/image.h        |  37 ++++++++++-
 include/rsa-checksum.h |  26 ++++++++
 include/rsa.h          |  35 +++++++++++
 lib/libfdt/fdt_wip.c   |  17 ++++++
 lib/rsa/Makefile       |   2 +-
 lib/rsa/rsa-checksum.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++
 lib/rsa/rsa-sign.c     |  10 +--
 lib/rsa/rsa-verify.c   | 101 ++++++++++--------------------
 lib/sha256.c           |   2 +-
 tools/Makefile         |  42 ++++++++++++-
 tools/fdt_host.h       |   2 +
 tools/fit_check_sign.c | 119 ++++++++++++++++++++++++++++++++++++
 tools/fit_common.c     |  81 ++++++++++++++++++++++++
 tools/fit_common.h     |  22 +++++++
 tools/fit_image.c      |  62 ++-----------------
 tools/fit_info.c       | 116 +++++++++++++++++++++++++++++++++++
 tools/image-host.c     |  15 ++++-
 22 files changed, 831 insertions(+), 137 deletions(-)
 create mode 100644 include/rsa-checksum.h
 create mode 100644 lib/rsa/rsa-checksum.c
 create mode 100644 tools/fit_check_sign.c
 create mode 100644 tools/fit_common.c
 create mode 100644 tools/fit_common.h
 create mode 100644 tools/fit_info.c

Cc: Simon Glass <sjg at chromium.org>
Cc: andreas at oetken.name
-- 
1.8.3.1



More information about the U-Boot mailing list