]> git.baikalelectronics.ru Git - uboot.git/commit
hash: Kconfig option for SHA512 hardware acceleration
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 14 May 2021 05:08:27 +0000 (07:08 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:12 +0000 (12:36 +0200)
commitc6c81bbd978bf66366fe003c99772a911ffc7f23
tree0920992944e3697c629e346437e1627f91299634
parentf3d3c8902e23ddf332f10c1eaa7558e38fbc100d
hash: Kconfig option for SHA512 hardware acceleration

Commit b59406a8c7c2 ("hash: Allow for SHA512 hardware implementations")
defined function definitions for hardware accelerated SHA384 and SHA512.
If CONFIG_SHA_HW_ACCEL=y, these functions are used.

We already have boards using CONFIG_SHA_HW_ACCEL=y but none implements the
new functions hw_sha384() and hw_sha512().

For implementing the EFI TCG2 protocol we need SHA384 and SHA512. The
missing hardware acceleration functions lead to build errors on boards like
peach-pi_defconfig.

Introduce a new Kconfig symbol CONFIG_SHA512_HW_ACCEL to control if the
functions hw_sha384() and hw_sha512() shall be used to implement the SHA384
and SHA512 algorithms.

Fixes: b59406a8c7c2 ("hash: Allow for SHA512 hardware implementations")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/hash.c
lib/Kconfig