[PATCH v3 0/5] add the support of sha256_hmac and sha256_hkdf
Philippe Reynes
philippe.reynes at softathome.com
Mon Dec 9 10:41:54 CET 2024
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.
v3:
- also define sha256_hmac for legacy sha256
- add some #if to define function only when needed
Philippe Reynes (5):
mbedtls: enable support of hkdf
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
include/u-boot/sha256.h | 11 ++++
lib/mbedtls/Kconfig | 14 ++++
lib/mbedtls/Makefile | 2 +
lib/mbedtls/mbedtls_def_config.h | 4 ++
lib/mbedtls/sha256.c | 60 +++++++++++++++++
lib/sha256.c | 37 +++++++++++
test/lib/Makefile | 2 +
test/lib/test_sha256_hkdf.c | 104 +++++++++++++++++++++++++++++
test/lib/test_sha256_hmac.c | 108 +++++++++++++++++++++++++++++++
9 files changed, 342 insertions(+)
create mode 100644 test/lib/test_sha256_hkdf.c
create mode 100644 test/lib/test_sha256_hmac.c
--
2.25.1
More information about the U-Boot
mailing list