mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix sha224sum panic by registering SHA224 hash name.
@ 2012-06-07 13:03 Krzysztof Halasa
  2012-06-07 17:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Halasa @ 2012-06-07 13:03 UTC (permalink / raw)
  To: barebox

barebox:/ sha224sum
BUG: failure at commands/digest.c:40/do_digest()!

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>

diff --git a/crypto/sha2.c b/crypto/sha2.c
index 17303e6..3096efe 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,

-- 
Krzysztof Halasa

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-07 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-07 13:03 [PATCH] Fix sha224sum panic by registering SHA224 hash name Krzysztof Halasa
2012-06-07 17:40 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox