crypto: add digest_alloc_by_algo()
In barebox the function digest_alloc() allocates a digest based on a string.
When a subsystem already uses an integer value to identify a digest it makes no
sense to create a string and pass it to digest_alloc(), where it is parsed
again. This patch adds the possibility to get a digest by an enum.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fe092b5 commit 86a8f9ff0a09935899896d937f48ab7d6860b623
@Sascha Hauer Sascha Hauer authored on 6 Jan 2016
Showing 8 changed files
View
arch/arm/crypto/sha1_glue.c
View
arch/arm/crypto/sha256_glue.c
View
crypto/digest.c
View
crypto/md5.c
View
crypto/sha1.c
View
crypto/sha2.c
View
crypto/sha4.c
View
include/digest.h