Skip to contentSkip to conversation

Fix sha224sum panic by registering SHA224 hash name.

PATCH Applied Krzysztof Halasa 2 participants 2 messages Jun 7, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix sha224sum panic by registering SHA224 hash name.

barebox:/ sha224sum

BUG: failure at commands/digest.c:40/do_digest()!
crypto/sha2.c +1 -0
index 17303e6..3096efe 100644
@@ -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,
Signature · 6 lines
Krzysztof Halasa

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw

Hi Krzysztof,

Quoted 5 lines · Krzysztof Halasa

barebox:/ sha224sum

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

Applied to master (also the other two patches)

Thanks
Sascha

Quoted 20 lines
crypto/sha2.c +1 -0
index 17303e6..3096efe 100644
@@ -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,
Signature · 7 lines
-- 
Krzysztof Halasa

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox