Re: [PATCH] ubifs: fix wrong use of crypto_shash_descsize()

2020-05-17 Thread Richard Weinberger
uot;stable" > > > > Gesendet: Freitag, 15. Mai 2020 21:17:04 > > Betreff: Re: [PATCH] ubifs: fix wrong use of crypto_shash_descsize() > > > On Mon, May 04, 2020 at 09:16:44AM +0200, Sascha Hauer wrote: > >> On Fri, May 01, 2020 at 10:59:45PM -0700, E

Re: [PATCH] ubifs: fix wrong use of crypto_shash_descsize()

2020-05-15 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Eric Biggers" > An: "Sascha Hauer" , "richard" > CC: "linux-mtd" , "Linux Crypto Mailing List" > , "stable" > > Gesendet: Freitag, 15. Mai 2020 21:17:04 > Betreff: Re: [PAT

Re: [PATCH] ubifs: fix wrong use of crypto_shash_descsize()

2020-05-15 Thread Eric Biggers
On Mon, May 04, 2020 at 09:16:44AM +0200, Sascha Hauer wrote: > On Fri, May 01, 2020 at 10:59:45PM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > crypto_shash_descsize() returns the size of the shash_desc context > > needed to compute the hash, not the size of the hash itself. > > > >

Re: [PATCH] ubifs: fix wrong use of crypto_shash_descsize()

2020-05-04 Thread Sascha Hauer
On Fri, May 01, 2020 at 10:59:45PM -0700, Eric Biggers wrote: > From: Eric Biggers > > crypto_shash_descsize() returns the size of the shash_desc context > needed to compute the hash, not the size of the hash itself. > > crypto_shash_digestsize() would be correct, or alternatively using > c->has

[PATCH] ubifs: fix wrong use of crypto_shash_descsize()

2020-05-01 Thread Eric Biggers
From: Eric Biggers crypto_shash_descsize() returns the size of the shash_desc context needed to compute the hash, not the size of the hash itself. crypto_shash_digestsize() would be correct, or alternatively using c->hash_len and c->hmac_desc_len which already store the correct values. But actua