lib: sha256: move common function to sha256_common.c
authorPhilippe Reynes <philippe.reynes@softathome.com>
Thu, 19 Dec 2024 13:05:49 +0000 (14:05 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 18 Jan 2025 23:12:47 +0000 (17:12 -0600)
commitccc5e166836c2fa204a58fe9ac87c5fce72b5e7b
treee3e00e5c88bd32888e0d407207af89ddb6a84f33
parent70a42bf2170eadd2b8b99175785435f209faca0a
lib: sha256: move common function to sha256_common.c

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 <raymond.mao@linaro.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
lib/Makefile
lib/mbedtls/sha256.c
lib/sha256.c
lib/sha256_common.c [new file with mode: 0644]
tools/Makefile