crypto: cryptd - pass through absence of ->setkey()
authorEric Biggers <ebiggers@google.com>
Wed, 3 Jan 2018 19:16:23 +0000 (11:16 -0800)
committerSasha Levin <alexander.levin@microsoft.com>
Thu, 1 Mar 2018 03:09:51 +0000 (22:09 -0500)
commitee3e3013bda6fdf2b88fb98068c812fffb36d0ad
tree9de2c244415acbd8e70c5468827f9f4c5f9c6b1d
parent524e9a929b5d1e0396216e9ec64dc7fb3560f050
crypto: cryptd - pass through absence of ->setkey()

[ Upstream commit 841a3ff329713f796a63356fef6e2f72e4a3f6a3 ]

When the cryptd template is used to wrap an unkeyed hash algorithm,
don't install a ->setkey() method to the cryptd instance.  This change
is necessary for cryptd to keep working with unkeyed hash algorithms
once we start enforcing that ->setkey() is called when present.

Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
crypto/cryptd.c