linux/drivers/crypto/inside-secure
Antoine Tenart 583d7e195f crypto: inside-secure - fix use of the SG list
Replace sg_nents_for_len by sg_nents when DMA mapping/unmapping buffers
and when looping over the SG entries. This fix cases where the SG
entries aren't used fully, which would in such cases led to using fewer
SG entries than needed (and thus the engine wouldn't have access to the
full input data and the result would be wrong).

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-06-06 14:38:56 +08:00
..
Makefile
safexcel_cipher.c crypto: inside-secure - fix use of the SG list 2019-06-06 14:38:56 +08:00
safexcel_hash.c crypto: inside-secure - fix use of the SG list 2019-06-06 14:38:56 +08:00
safexcel_ring.c crypto: inside-secure - enable context reuse 2019-06-06 14:38:56 +08:00
safexcel.c crypto: inside-secure - enable context reuse 2019-06-06 14:38:56 +08:00
safexcel.h crypto: inside-secure - add support for HMAC updates 2019-06-06 14:38:56 +08:00