Skip to content

add the support of sha256_hmac and sha256_hkdf

Philippe Reynes u-boot 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest9 patches 5 repliesIn review
  2. v69 patches 2 repliesSuperseded
  3. v59 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v48 patches12 repliesSuperseded
v35 patches8 repliesSuperseded
v25 patches9 repliesSuperseded

Changes in v7 from the cover letter

- add missing reviewed-by

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9tools: kwbimage.h: use linux/compiler_attributes.htools/kwbimage.h+1 -50 replies
2/9tools: renesas_spkgimage.h: use linux/compiler_attributes.htools/renesas_spkgimage.h+1 -50 replies
3/9mbedtls: enable support of hkdflib/mbedtls/Kconfig lib/mbedtls/Makefile lib/mbedtls/mbedtls_def_config.h+20 -00 replies
4/9lib: sha256: move common function to sha256_common.clib/Makefile lib/mbedtls/sha256.c lib/sha256.c +2 more+52 -630 replies
5/9lib: sha256: add feature sha256_hmacinclude/u-boot/sha256.h lib/mbedtls/sha256.c lib/sha256.c+70 -01 reply
6/9test: lib: add test for sha256_hmactest/lib/Makefile test/lib/test_sha256_hmac.c+295 -01 reply
7/9lib: mbedtls: sha256: add support of key derivationinclude/u-boot/sha256.h lib/mbedtls/sha256.c+43 -01 reply
8/9test: lib: add test for key derivationtest/lib/Makefile test/lib/test_sha256_hkdf.c+199 -01 reply
9/9configs: sandbox: enable mbedtlsconfigs/sandbox_defconfig+2 -00 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchRaymond Mao
1/9
2/9
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/9] add the support of sha256_hmac and sha256_hkdf

This serie adds the support of sha256_hmac and sha256_hkdf. A first version was sent several months ago just before the integration of mbedtls. This new version is based on mbedtls.

The first patch of this serie add the support of hkdf using mbedtls.

v7:
- add missing reviewed-by

v6:
- use const for test
- set buffer to 0 before using to to compute hmac

v5:
- use mbedtls to compute hmac
- add tests for hkdf
- enabled mbedtls in sandbox_defconfig
- some cleanup

v4:
- fix computation of the hmac
- add more test for hmac
- move sha256 common functions to sha256_common.c
- some cleanup

v3:
- also define sha256_hmac for legacy sha256
- add some #if to define function only when needed

Philippe Reynes (9):
tools: kwbimage.h: use linux/compiler_attributes.h
tools: renesas_spkgimage.h: use linux/compiler_attributes.h
mbedtls: enable support of hkdf
lib: sha256: move common function to sha256_common.c
lib: sha256: add feature sha256_hmac
test: lib: add test for sha256_hmac
lib: mbedtls: sha256: add support of key derivation
test: lib: add test for key derivation
configs: sandbox: enable mbedtls

 configs/sandbox_defconfig        |   2 +
 include/u-boot/sha256.h          |  24 +++
 lib/Makefile                     |   1 +
 lib/mbedtls/Kconfig              |  14 ++
 lib/mbedtls/Makefile             |   2 +
 lib/mbedtls/mbedtls_def_config.h |   4 +
 lib/mbedtls/sha256.c             |  59 ++++---
 lib/sha256.c                     |  67 ++++---
 lib/sha256_common.c              |  50 ++++++
 test/lib/Makefile                |   2 +
 test/lib/test_sha256_hkdf.c      | 198 +++++++++++++++++++++
 test/lib/test_sha256_hmac.c      | 294 +++++++++++++++++++++++++++++++
 tools/Makefile                   |   1 +
 tools/kwbimage.h                 |   6 +-
 tools/renesas_spkgimage.h        |   6 +-
 15 files changed, 670 insertions(+), 60 deletions(-)
 create mode 100644 lib/sha256_common.c
 create mode 100644 test/lib/test_sha256_hkdf.c
 create mode 100644 test/lib/test_sha256_hmac.c
Signature · 1 line
2.25.1