diff options
author | Krzysztof Halasa <khc@pm.waw.pl> | 2012-06-07 15:03:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-07 19:39:09 +0200 |
commit | 76049e05fa93b852c0e33227cc795134421a3546 (patch) | |
tree | b780e7003da07c7f998574d782a1628680dd2930 | |
parent | 6815e0d0548011a9e8574947f5de4754530d3edd (diff) | |
download | barebox-76049e05fa93b852c0e33227cc795134421a3546.tar.gz barebox-76049e05fa93b852c0e33227cc795134421a3546.tar.xz |
Fix sha224sum panic by registering SHA224 hash name.
barebox:/ sha224sum
BUG: failure at commands/digest.c:40/do_digest()!
Signed-off-by: Krzysztof HaĆasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | crypto/sha2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/sha2.c b/crypto/sha2.c index 17303e6561..3096efe925 100644 --- a/crypto/sha2.c +++ b/crypto/sha2.c @@ -313,6 +313,7 @@ static int digest_sha224_init(struct digest *d) static struct sha2 m224 = { .d = { + .name = "sha224", .init = digest_sha224_init, .update = digest_sha2_update, .final = digest_sha2_final, |