[PATCH v7 5/9] lib: sha256: add feature sha256_hmac

2024-12-19 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/mbedtls/sha256.c| 15 lib/sha256.c| 51 + 3 files changed, 70

[PATCH v7 2/9] tools: renesas_spkgimage.h: use linux/compiler_attributes.h

2024-12-19 Thread Philippe Reynes
The attribute __packed was defined in the file tools/renesas_spkgimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/renesas_spkgimage.h | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH v7 9/9] configs: sandbox: enable mbedtls

2024-12-19 Thread Philippe Reynes
Enable mbedtls to have at least one config with mbedtls enabled. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 718e4a8283c..1258044241a 100644 --- a/configs

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

2024-12-19 Thread Philippe Reynes
: - 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

[PATCH v7 6/9] test: lib: add test for sha256_hmac

2024-12-19 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 294 2 files changed, 295 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v7 8/9] test: lib: add test for key derivation

2024-12-19 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 198 2 files changed, 199 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v7 4/9] lib: sha256: move common function to sha256_common.c

2024-12-19 Thread Philippe Reynes
The function sha256_csum_wd is defined in lib/sha256.c and in lib/mbedtls/sha256.c. To avoid duplicating this function (and future function), we move this function to the file lib/sha256_common.c Reviewed-by: Raymond Mao Signed-off-by: Philippe Reynes --- lib/Makefile | 1 + lib

[PATCH v7 7/9] lib: mbedtls: sha256: add support of key derivation

2024-12-19 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 20 lib/mbedtls/sha256.c| 23 +++ 2 files changed, 43 insertions(+) diff --git a/include/u-boot

[PATCH v7 3/9] mbedtls: enable support of hkdf

2024-12-19 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Reviewed-by: Raymond Mao Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions

[PATCH v7 1/9] tools: kwbimage.h: use linux/compiler_attributes.h

2024-12-19 Thread Philippe Reynes
The attribute __packed was defined in the file tools/kwbimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/kwbimage.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

Re: [PATCH v6 0/9] add the support of sha256_hmac and sha256_hkdf

2024-12-19 Thread Philippe REYNES
Hi Raymond, Le 18/12/2024 à 16:23, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Tue, 17 Dec 2024 at 16:36, Philippe Reynes wrote

[PATCH v6 3/9] mbedtls: enable support of hkdf

2024-12-17 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions(+) diff --git a/lib/mbedtls

Re: [PATCH v5 8/9] test: lib: add test for key derivation

2024-12-17 Thread Philippe REYNES
Hi Raymond, Le 17/12/2024 à 16:22, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Tue, 17 Dec 2024 at 03:32, Philippe Reynes wrote

Re: [PATCH v5 6/9] test: lib: add test for sha256_hmac

2024-12-17 Thread Philippe REYNES
Hi Raymond, Le 17/12/2024 à 15:59, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Tue, 17 Dec 2024 at 03:32, Philippe Reynes wrote

[PATCH v6 4/9] lib: sha256: move common function to sha256_common.c

2024-12-17 Thread Philippe Reynes
The function sha256_csum_wd is defined in lib/sha256.c and in lib/mbedtls/sha256.c. To avoid duplicating this function (and future function), we move this function to the file lib/sha256_common.c Signed-off-by: Philippe Reynes --- lib/Makefile | 1 + lib/mbedtls/sha256.c | 27

Re: [PATCH v5 5/9] lib: sha256: add feature sha256_hmac

2024-12-17 Thread Philippe REYNES
Hi Raymond, Le 17/12/2024 à 15:54, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Tue, 17 Dec 2024 at 03:32, Philippe Reynes wrote

[PATCH v6 7/9] lib: mbedtls: sha256: add support of key derivation

2024-12-17 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 20 lib/mbedtls/sha256.c| 23 +++ 2 files changed, 43 insertions(+) diff --git a/include/u-boot

[PATCH v6 9/9] configs: sandbox: enable mbedtls

2024-12-17 Thread Philippe Reynes
Enable mbedtls to have at least one config with mbedtls enabled. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 718e4a8283c..1258044241a 100644 --- a/configs

[PATCH v6 5/9] lib: sha256: add feature sha256_hmac

2024-12-17 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/mbedtls/sha256.c| 15 lib/sha256.c| 51 + 3 files changed, 70

[PATCH v6 8/9] test: lib: add test for key derivation

2024-12-17 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 198 2 files changed, 199 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v6 6/9] test: lib: add test for sha256_hmac

2024-12-17 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 294 2 files changed, 295 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v6 1/9] tools: kwbimage.h: use linux/compiler_attributes.h

2024-12-17 Thread Philippe Reynes
The attribute __packed was defined in the file tools/kwbimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/kwbimage.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH v6 0/9] add the support of sha256_hmac and sha256_hkdf

2024-12-17 Thread Philippe Reynes
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

[PATCH v6 2/9] tools: renesas_spkgimage.h: use linux/compiler_attributes.h

2024-12-17 Thread Philippe Reynes
The attribute __packed was defined in the file tools/renesas_spkgimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/renesas_spkgimage.h | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH v5 8/9] test: lib: add test for key derivation

2024-12-17 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 197 2 files changed, 198 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v5 3/9] mbedtls: enable support of hkdf

2024-12-17 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions(+) diff --git a/lib/mbedtls

[PATCH v5 1/9] tools: kwbimage.h: use linux/compiler_attributes.h

2024-12-17 Thread Philippe Reynes
The attribute __packed was defined in the file tools/kwbimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/kwbimage.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH v5 4/9] lib: sha256: move common function to sha256_common.c

2024-12-17 Thread Philippe Reynes
The function sha256_csum_wd is defined in lib/sha256.c and in lib/mbedtls/sha256.c. To avoid duplicating this function (and future function), we move this function to the file lib/sha256_common.c Signed-off-by: Philippe Reynes --- lib/Makefile | 1 + lib/mbedtls/sha256.c | 27

[PATCH v5 6/9] test: lib: add test for sha256_hmac

2024-12-17 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 294 2 files changed, 295 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v5 5/9] lib: sha256: add feature sha256_hmac

2024-12-17 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/mbedtls/sha256.c| 15 + lib/sha256.c| 50 + 3 files changed, 69

[PATCH v5 2/9] tools: renesas_spkgimage.h: use linux/compiler_attributes.h

2024-12-17 Thread Philippe Reynes
The attribute __packed was defined in the file tools/renesas_spkgimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/renesas_spkgimage.h | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH v5 9/9] configs: sandbox: enable mbedtls

2024-12-17 Thread Philippe Reynes
Enable mbedtls to have at least one config with mbedtls enabled. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 718e4a8283c..1258044241a 100644 --- a/configs

[PATCH v5 7/9] lib: mbedtls: sha256: add support of key derivation

2024-12-17 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 20 lib/mbedtls/sha256.c| 23 +++ 2 files changed, 43 insertions(+) diff --git a/include/u-boot

[PATCH v5 0/9] add the support of sha256_hmac and sha256_hkdf

2024-12-17 Thread Philippe Reynes
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

Re: [PATCH v4 8/8] test: lib: add test for key derivation

2024-12-16 Thread Philippe REYNES
Hi Raymond, Le 13/12/2024 à 18:00, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Thu, 12 Dec 2024 at 08:37, Philippe Reynes wrote

Re: [PATCH v4 7/8] lib: mbedtls: sha256: add support of key derivation

2024-12-16 Thread Philippe REYNES
Hi Raymond, Le 13/12/2024 à 17:58, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Thu, 12 Dec 2024 at 08:37, Philippe Reynes wrote

Re: [PATCH v4 5/8] lib: sha256: add feature sha256_hmac

2024-12-16 Thread Philippe REYNES
Hi Raymond, Le 16/12/2024 à 16:01, Raymond Mao a écrit : Hi Philippe, On Mon, 16 Dec 2024 at 07:48, Philippe REYNES wrote: Hi Raymond, Le 13/12/2024 à 17:49, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open

Re: [PATCH v4 6/8] test: lib: add test for sha256_hmac

2024-12-16 Thread Philippe REYNES
Hi Raymond, Le 13/12/2024 à 17:56, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Thu, 12 Dec 2024 at 08:37, Philippe Reynes wrote

Re: [PATCH v4 5/8] lib: sha256: add feature sha256_hmac

2024-12-16 Thread Philippe REYNES
Hi Raymond, Le 13/12/2024 à 17:49, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Thu, 12 Dec 2024 at 08:37, Philippe Reynes wrote

[PATCH v4 2/8] tools: renesas_spkgimage.h: use linux/compiler_attributes.h

2024-12-12 Thread Philippe Reynes
The attribute __packed was defined in the file tools/renesas_spkgimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/renesas_spkgimage.h | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH v4 6/8] test: lib: add test for sha256_hmac

2024-12-12 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 296 2 files changed, 297 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v4 4/8] lib: sha256: move common function to sha256_common.c

2024-12-12 Thread Philippe Reynes
The function sha256_csum_wd is defined in lib/sha256.c and in lib/mbedtls/sha256.c. To avoid duplicating this function (and future function), we move this function to the file lib/sha256_common.c Signed-off-by: Philippe Reynes --- lib/Makefile | 1 + lib/mbedtls/sha256.c | 27

[PATCH v4 8/8] test: lib: add test for key derivation

2024-12-12 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 107 2 files changed, 108 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v4 1/8] tools: kwbimage.h: use linux/compiler_attributes.h

2024-12-12 Thread Philippe Reynes
The attribute __packed was defined in the file tools/kwbimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- tools/kwbimage.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH v4 0/8] add the support of sha256_hmac and sha256_hkdf

2024-12-12 Thread Philippe Reynes
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 (8): tools: kwbimage.h: use linux/compiler_attributes.h tools: renesas_spkgimage.h: use linux

[PATCH v4 7/8] lib: mbedtls: sha256: add support of key derivation

2024-12-12 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 20 lib/mbedtls/sha256.c| 22 ++ 2 files changed, 42 insertions(+) diff --git a/include/u-boot

[PATCH v4 5/8] lib: sha256: add feature sha256_hmac

2024-12-12 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/sha256_common.c | 48 + 2 files changed, 52 insertions(+) diff --git a/include/u-boot

[PATCH v4 3/8] mbedtls: enable support of hkdf

2024-12-12 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions(+) diff --git a/lib/mbedtls

Re: [PATCH v3 5/5] test: lib: add test for key derivation

2024-12-11 Thread Philippe REYNES
Hi Raymond, Le 09/12/2024 à 17:36, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Mon, 9 Dec 2024 at 04:42, Philippe Reynes wrote

Re: [PATCH v3 4/5] lib: mbedtls: sha256: add support of key derivation

2024-12-11 Thread Philippe REYNES
Hi Raymond, Le 09/12/2024 à 17:28, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Mon, 9 Dec 2024 at 04:42, Philippe Reynes wrote

Re: [PATCH v3 3/5] test: lib: add test for sha256_hmac

2024-12-11 Thread Philippe REYNES
Hi Raymond, Le 09/12/2024 à 17:13, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Mon, 9 Dec 2024 at 04:42, Philippe Reynes wrote

Re: [PATCH v3 2/5] lib: sha256: add feature sha256_hmac

2024-12-11 Thread Philippe REYNES
Hi Raymond, Le 09/12/2024 à 17:06, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Mon, 9 Dec 2024 at 04:42, Philippe Reynes wrote

[PATCH v3 0/5] add the support of sha256_hmac and sha256_hkdf

2024-12-09 Thread Philippe Reynes
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

[PATCH v3 4/5] lib: mbedtls: sha256: add support of key derivation

2024-12-09 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 7 +++ lib/mbedtls/sha256.c| 22 ++ 2 files changed, 29 insertions(+) diff --git a/include/u-boot/sha256.h b

[PATCH v3 5/5] test: lib: add test for key derivation

2024-12-09 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 104 2 files changed, 105 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v3 3/5] test: lib: add test for sha256_hmac

2024-12-09 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 108 2 files changed, 109 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v3 2/5] lib: sha256: add feature sha256_hmac

2024-12-09 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/mbedtls/sha256.c| 38 ++ lib/sha256.c| 37 + 3

[PATCH v3 1/5] mbedtls: enable support of hkdf

2024-12-09 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions(+) diff --git a/lib/mbedtls

Re: [PATCH v2 4/5] lib: mbedtls: sha256: add support of key derivation

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:18, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote

Re: [PATCH v2 3/5] test: lib: add test for sha256_hamc

2024-12-06 Thread Philippe REYNES
s a lot, I will fix it in v3 On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote: Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes ---  test/lib/Makefile           |   1 +  test/lib/test_sha256_hmac.c | 108

Re: [PATCH v2 2/5] lib: sha256: add feature sha256_hmac

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:11, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote

Re: [PATCH v2 1/5] mbedtls: enable support of hkdf

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:08, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote

[PATCH v2 5/5] test: lib: add test for key derivation

2024-12-04 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hkdf.c | 104 2 files changed, 105 insertions(+) create mode 100644 test/lib/test_sha256_hkdf.c diff --git a/test/lib

[PATCH v2 4/5] lib: mbedtls: sha256: add support of key derivation

2024-12-04 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 5 + lib/mbedtls/sha256.c| 18 ++ 2 files changed, 23 insertions(+) diff --git a/include/u-boot/sha256.h b/include

[PATCH v2 2/5] lib: sha256: add feature sha256_hmac

2024-12-04 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/mbedtls/sha256.c| 38 ++ 2 files changed, 42 insertions(+) diff --git a/include/u-boot/sha256

[PATCH v2 3/5] test: lib: add test for sha256_hamc

2024-12-04 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 108 2 files changed, 109 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH v2 1/5] mbedtls: enable support of hkdf

2024-12-04 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. Signed-off-by: Philippe Reynes --- lib/mbedtls/Kconfig | 14 ++ lib/mbedtls/Makefile | 2 ++ lib/mbedtls/mbedtls_def_config.h | 4 3 files changed, 20 insertions(+) diff --git a/lib/mbedtls

[PATCH v2 0/5] add the support of sha256_hmac and sha256_hkdf

2024-12-04 Thread Philippe Reynes
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. Philippe Reynes (5): mbedtls: enable

Re: [PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-23 Thread Philippe REYNES
Hi Tom, Le 17/07/2024 à 19:58, Tom Rini a écrit : On Wed, Jul 17, 2024 at 07:08:27PM +0200, Philippe REYNES wrote: Hi Peter, Le 16/07/2024 à 18:56, Peter Robinson a écrit : This Mail comes from Outside of SoftAtHome: Do not answer, click links or open attachments unless you recognize the

Re: [PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-17 Thread Philippe REYNES
is serie is not very useful. Peter Regards, Philippe [1] https://lists.denx.de/pipermail/u-boot/2024-July/557832.html On Tue, 16 Jul 2024 at 16:16, Philippe Reynes wrote: Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes

[PATCH 4/4] test: lib: add test for key derivation

2024-07-16 Thread Philippe Reynes
Adds a test for the function sha256_hkdf. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 2 +- test/lib/test_sha256_hkdf.c | 104 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 test/lib/test_sha256_hkdf.c diff

[PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-16 Thread Philippe Reynes
Adds the support of the hmac based on sha256. This implementation is based on rfc2104. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 4 lib/sha256.c| 40 2 files changed, 44 insertions(+) diff --git a/include/u-boot

[PATCH 2/4] test: lib: add test for sha256_hamc

2024-07-16 Thread Philippe Reynes
Adds a test for the function sha256_hmac Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_sha256_hmac.c | 108 2 files changed, 109 insertions(+) create mode 100644 test/lib/test_sha256_hmac.c diff --git a/test/lib

[PATCH 3/4] lib: sha256: add support of key derivation

2024-07-16 Thread Philippe Reynes
Adds the support of key derivation using the scheme hkdf. This scheme is defined in rfc5869. Signed-off-by: Philippe Reynes --- include/u-boot/sha256.h | 8 lib/sha256.c| 42 + 2 files changed, 50 insertions(+) diff --git a/include

Re: [PATCH] drivers: led: bcm6858: do not use null label to find the top

2023-07-19 Thread Philippe REYNES
Hi Tom, Le 18/07/2023 à 15:43, Tom Rini a écrit : On Tue, Jul 18, 2023 at 11:20:52AM +0200, Philippe REYNES wrote: Hi Tom, For this patch, I see that it is accepted on patchwork: https://patchwork.ozlabs.org/project/uboot/patch/20230623163642.241034-1-philippe.rey...@softathome.com/ But I

Re: [PATCH] drivers: led: bcm6858: do not use null label to find the top

2023-07-18 Thread Philippe REYNES
06/2023 à 18:36, Philippe Reynes a écrit : This driver considers that a node with an empty label is the top. But the led class has changed, if a label is not provided for a led, the label is filed with the node name. So we update this driver to use a wrapper to manage the top led node. Signed-o

[PATCH] drivers: led: bcm6753: do not use null label to find the top

2023-06-29 Thread Philippe Reynes
This driver considers that a node with an empty label is the top. But the led class has changed, if a label is not provided for a led, the label is filed with the node name. So we update this driver to use a wrapper to manage the top led node. Signed-off-by: Philippe Reynes --- drivers/led

[PATCH] drivers: led: bcm6858: do not use null label to find the top

2023-06-23 Thread Philippe Reynes
This driver considers that a node with an empty label is the top. But the led class has changed, if a label is not provided for a led, the label is filed with the node name. So we update this driver to use a wrapper to manage the top led node. Signed-off-by: Philippe Reynes --- drivers/led

Re: [PATCH v2] arm: bcmbca: add bcm63138 SoC support

2022-08-24 Thread Philippe REYNES
dress in the memory and boot from there to the console. This patch applies on top of the my previous patch [1]. [1] https://lists.denx.de/pipermail/u-boot/2022-August/490570.html Signed-off-by: William Zhang Reviewed-by: Florian Fainelli Reviewed-by: Philippe Reynes --- Changes in v2: -

Re: [PATCH v3 5/5] arm: bcmbca: make reset_cpu function weak

2022-08-24 Thread Philippe REYNES
Zhang Reviewed-by: Philippe Reynes --- Changes in v3: -Fix reset_cpu function prototype. board/broadcom/bcmbca/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/broadcom/bcmbca/board.c b/board/broadcom/bcmbca/board.c index 4aa1d659d5c7..bcecb4d78392 100644

Re: [PATCH v3 4/5] MAINTAINERS: Add BCM63158 maintainer to BCMBCA entry

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:19, William Zhang a écrit : Since ARCH_BCM63158 SoC support is merged into ARCH_BCMBCA, add BCM63158 maintainer Philippe to bcmbca maintainer list. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v1) MAINTAINERS | 1

Re: [PATCH v3 3/5] arm: bcmbca: replace ARCH_BCM63158 symbols in Kconfig with BCM63158

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:19, William Zhang a écrit : As CONFIG_ARCH_BCM63158 is replaced with CONFIG_BCM63158, update the Kconfig to use the new config symbol. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v3: -Update subject line to be more clear

Re: [PATCH v3 2/5] arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:19, William Zhang a écrit : Now that BCM63158 is supported under CONFIG_ARCH_BCMBCA and CONFIG_BCM63158, remove the original ARCH_BCM63158 support and migrate configuration settings. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no

Re: [PATCH v3 1/5] arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA

2022-08-24 Thread Philippe REYNES
address in the memory and boot from there to the console. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v2) Changes in v2: - Remove extra nodes from bcm963158.dts and keep it as a generic minimun board support dts following other BCA chip convention

Re: [PATCH v2 3/3] arm: bcmbca: replace ARCH_BCM6753 symbols in Kconfig with BCM6855

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:49, William Zhang a écrit : As CONFIG_ARCH_BCM6753 is replaced with CONFIG_BCM6855, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v2: - Update subject line to be more

Re: [PATCH v2 2/3] arm: bcmbca: remove bcm6753 support under CONFIG_ARCH_BCM6753

2022-08-24 Thread Philippe REYNES
bcm96855.h file. - Delete bcm96753ref_ram_defconfig and use a basic config version of bcm96855_defconfig Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v1) arch/arm/Kconfig | 8 - arch/arm/dts/Makefile| 6

Re: [PATCH v2 1/3] arm: bcmbca: add bcm6855 SoC support under CONFIG_ARCH_BCMBCA

2022-08-24 Thread Philippe REYNES
address in the memory and boot from there to the console. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v2: - Add help in BCM6855 Kconfig option to include the list of the supported chips. MAINTAINERS | 1 + arch/arm/dts/Makefile

Re: [PATCH v2 3/3] arm: bcmbca: replace ARCH_BCM6858 symbols in Kconfig with BCM6858

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:39, William Zhang a écrit : As CONFIG_ARCH_BCM6858 is replaced with CONFIG_BCM6858, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v2: -Update subject line to be more

Re: [PATCH v2 2/3] arm: bcmbca: remove bcm6858 support under CONFIG_ARCH_BCM6858

2022-08-24 Thread Philippe REYNES
: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v1) arch/arm/Kconfig | 7 --- arch/arm/dts/Makefile| 6 +- arch/arm/dts/bcm968580xref.dts | 4 +- board/broadcom/bcm968580xref/Kconfig | 17

Re: [PATCH v2 1/3] arm: bcmbca: add bcm6858 SoC support under CONFIG_ARCH_BCMBCA

2022-08-24 Thread Philippe REYNES
Reviewed-by: Philippe Reynes --- Changes in v2: -Add help in BCM6858 Kconfig option to include the list of the supported chips. MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6858.dtsi| 197

Re: [PATCH v4 3/3] arm: bcmbca: replace ARCH_BCM68360 symbols in Kconfig with BCM6856

2022-08-24 Thread Philippe REYNES
Hi William, Le 22/08/2022 à 20:31, William Zhang a écrit : As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v4: -Update subject line to be more

Re: [PATCH v4 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-24 Thread Philippe REYNES
bcm968360bg_ram_defconfig as a basic config version of bcm96856_defconfig is now added. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v3) Changes in v3: - Remove bcm968360bg_ram_defconfig per discussion with Philippe as a basic config version of

Re: [PATCH v4 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-24 Thread Philippe REYNES
in the memory and boot from there to the console. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- Changes in v4: -Add help in BCM6856 Kconfig option to include the list of the supported chips. MAINTAINERS | 1 + arch/arm/dts/Makefile

Re: [PATCH v2 3/3] arm: bcmbca: make bcm68360 driver depending on CONFIG_BCM6856

2022-08-24 Thread Philippe REYNES
Hi William, Le 15/08/2022 à 20:55, William Zhang a écrit : As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v1) drivers/gpio/Kconfig

Re: [PATCH v2 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-24 Thread Philippe REYNES
: William Zhang Reviewed-by: Philippe Reynes --- Changes in v2: - Bring Philippe Reynes copyright tag from 68360 dts to 6856 dts arch/arm/Kconfig | 7 - arch/arm/dts/Makefile| 6 +- arch/arm/dts/bcm68360.dtsi | 217

Re: [PATCH v2 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-24 Thread Philippe REYNES
in the memory and boot from there to the console. Signed-off-by: William Zhang Reviewed-by: Philippe Reynes --- (no changes since v1) MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6856.dtsi| 103

Re: [PATCH v3 1/1] arm: bcmbca: introduce the bcmbca architecture and 47622 SOC

2022-05-11 Thread Philippe REYNES
iewed-by: Philippe Reynes --- Changes in v3: - Remove the CONFIG_SYS_BAUDRATE_TABLE to use the u-boot default table Changes in v2: - Updated dts and dtsi files which are accpeted in linux-next upstream - Changed CONFIG_SYS_TEXT_BASE to 0x0100 from 0x1000 to work on boards with 256MB or

[PATCH 1/3] disk: part_efi: add support to repair gpt table

2022-04-22 Thread Philippe Reynes
If a gpt table is corrupted (after a power cut for example), then the gpt table should repaired. The function gpt_repair_headers check if at least one gpt table is valid, and then only write the corrupted gpt table. Signed-off-by: Philippe Reynes --- disk/part_efi.c | 86

[PATCH 2/3] cmd: gpt: add subcommand repair

2022-04-22 Thread Philippe Reynes
Adds a sub-command repair to the command gpt that allow to repair a corrupted gpt table. If the both gpt table (primary and backup) are valid, then the command does nothing. Signed-off-by: Philippe Reynes --- cmd/gpt.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff

[PATCH 3/3] test: py: tests: test_gpt.py: add a simple test for the command gpt repair

2022-04-22 Thread Philippe Reynes
Adds a simple test for the command gpt repair. Signed-off-by: Philippe Reynes --- test/py/tests/test_gpt.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/test/py/tests/test_gpt.py b/test/py/tests/test_gpt.py index 229d7eb2c2..f707d9f253 100644 --- a/test/py/tests/test_gpt.py

  1   2   3   4   5   6   7   >