2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/crypto/sunxi-ss
Corentin Labbe f87391558a crypto: sun4i-ss - Fix invalid calculation of hash end
When nbytes < 4, end is wronlgy set to a negative value which, due to
uint, is then interpreted to a large value leading to a deadlock in the
following code.

This patch fix this problem.

Fixes: 6298e94821 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-04-25 15:38:12 +08:00
..
Makefile crypto: sun4i-ss - support the Security System PRNG 2017-07-18 17:50:55 +08:00
sun4i-ss-cipher.c crypto: sun4i-ss - Handle better absence/presence of IV 2019-04-25 15:38:12 +08:00
sun4i-ss-core.c crypto: sun4i-ss - remove ivsize from ECB 2019-04-25 15:38:12 +08:00
sun4i-ss-hash.c crypto: sun4i-ss - Fix invalid calculation of hash end 2019-04-25 15:38:12 +08:00
sun4i-ss-prng.c crypto: sun4i_ss_prng - convert lock to _bh in sun4i_ss_prng_generate 2018-02-08 22:38:14 +11:00
sun4i-ss.h crypto: sun4i-ss - support the Security System PRNG 2017-07-18 17:50:55 +08:00