Re: [PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Heinrich Schuchardt
On 8/31/22 15:46, Simon Glass wrote: Hi Heinrich, On Wed, 31 Aug 2022 at 03:32, Heinrich Schuchardt wrote: Check the that the hash length is shorter than the message length. This avoids: ./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized [-Wmaybe-un

Re: [PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Simon Glass
Hi Heinrich, On Wed, 31 Aug 2022 at 03:32, Heinrich Schuchardt wrote: > > Check the that the hash length is shorter than the message length. This > avoids: > > ./tools/../lib/rsa/rsa-verify.c:275:11: warning: > ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] > 275 |

[PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Heinrich Schuchardt
Check the that the hash length is shorter than the message length. This avoids: ./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] 275 | db[0] &= 0xff >> leftmost_bits; Signed-off-by: Heinrich Schuchardt --- lib/rsa/rsa