]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: wrap crypt API to hide errno usage
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>
Thu, 8 Jul 2021 13:57:34 +0000 (15:57 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 17:36:20 +0000 (13:36 -0400)
commit29bbe71ccfef3440b4881259c6f8e39b6e7924c6
tree94cb413cee26ff74dd02e3b70ca42a378c6d2ae1
parent26dd9936574864155b989b9f14319ca2779f0598
lib: wrap crypt API to hide errno usage

In order to prevent using the global errno, replace it with a static
version and create a wrapper function which returns the error value.

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
include/crypt.h
lib/crypt/alg-sha256.h
lib/crypt/alg-sha512.h
lib/crypt/crypt-port.h
lib/crypt/crypt-sha256.c
lib/crypt/crypt-sha512.c
lib/crypt/crypt.c
test/lib/test_crypt.c