]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Fix hang case on EIP97 with zero length input data
authorPascal van Leeuwen <pascalvanl@gmail.com>
Wed, 11 Dec 2019 16:32:36 +0000 (17:32 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Dec 2019 06:58:34 +0000 (14:58 +0800)
commit61291d73e22f282bf633d0d46ac32930e58acca6
tree5db431f2bb3e9a5a661d30335a146840c03eef73
parent57cf66752b11aab6d53aec6e40e10f6406e628c7
crypto: inside-secure - Fix hang case on EIP97 with zero length input data

The EIP97 hardware cannot handle zero length input data and will (usually)
hang when presented with this anyway. This patch converts any zero length
input to a 1 byte dummy input to prevent this hanging.

Signed-off-by: Pascal van Leeuwen <pvanleeuwen@rambus.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c