]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mcryptd - pass through absence of ->setkey()
authorEric Biggers <ebiggers@google.com>
Wed, 3 Jan 2018 19:16:24 +0000 (11:16 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Jan 2018 12:03:10 +0000 (23:03 +1100)
commit2b34904c9627c2e4dfdaaddbc1b3b9c0f5c8c665
tree1ba78470108c287ce18717cc1be10746b4fcd67f
parentc5584bacd79cce3d4e1d60e1fa58c06ce1e84ecf
crypto: mcryptd - pass through absence of ->setkey()

When the mcryptd template is used to wrap an unkeyed hash algorithm,
don't install a ->setkey() method to the mcryptd instance.  This change
is necessary for mcryptd 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>
crypto/mcryptd.c