Re: [PATCH] Fix sha224sum panic by registering SHA224 hash name.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Krzysztof,

On Thu, Jun 07, 2012 at 03:03:15PM +0200, Krzysztof Halasa wrote:
> barebox:/ sha224sum
> BUG: failure at commands/digest.c:40/do_digest()!
> 
> Signed-off-by: Krzysztof Hałasa <khc@xxxxxxxxx>
> 

Applied to master (also the other two patches)

Thanks
 Sascha

> 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@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
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
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux