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 bc94fb3 commit fedba5aaef6d980a57380c7caf9a545b4457b29e
@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