u-boot/include/u-boot
Alexandru Gagniuc fe54aeaa4a common: Move MD5 hash to hash_algo[] array.
MD5 is being called directly in some places, but it is not available
via hash_lookup_algo("md5"). This is inconsistent with other hasing
routines. To resolve this, add an "md5" entry to hash_algos[].

The #ifdef clause looks funnier than those for other entries. This is
because both MD5 and SPL_MD5 configs exist, whereas the other hashes
do not have "SPL_" entries. The long term plan is to get rid of the
ifdefs, so those should not be expected to survive much longer.

The md5 entry does not have .hash_init/update/finish members. That's
okay because hash_progressive_lookup_algo() will catch that, and
return -EPROTONOSUPPORT, while hash_lookup_algo() will return the
correct pointer.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
[trini: Use CONFIG_IS_ENABLED not IS_ENABLED for MD5 check]
Signed-off-by: Tom Rini <trini@konsulko.com>
2021-09-08 16:11:46 -04:00
..
aes.h fit: cipher: aes: allow to store the IV in the FIT image 2020-10-12 21:30:37 -04:00
crc.h include/u-boot/crc.h: pull 'uint' definition on musl targets 2020-01-03 09:47:10 -05:00
ecdsa.h lib: ecdsa: Remove #ifdefs from ecdsa.h 2021-07-16 15:39:29 -04:00
fdt-libcrypto.h lib/rsa: Make fdt_add_bignum() available outside of RSA code 2021-04-14 15:06:08 -04:00
hash-checksum.h lib: Rename rsa-checksum.c to hash-checksum.c 2021-04-14 15:06:08 -04:00
md5.h common: Move MD5 hash to hash_algo[] array. 2021-09-08 16:11:46 -04:00
rsa-mod-exp.h lib: rsa: struct udevice build warning 2021-02-24 16:51:48 -05:00
rsa.h lib: rsa: Remove #ifdefs from rsa.h 2021-07-16 15:39:29 -04:00
sha1.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sha256.h rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
sha512.h Add support for SHA384 and SHA512 2020-06-12 13:14:07 -04:00
u-boot.lds.h start a linker script helper file 2009-08-23 22:33:33 +02:00
variadic-macro.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zlib.h include/u-boot, lib/zlib: add sources for zlib decompression 2020-08-07 22:31:32 -04:00