]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix non-hmac hashes
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 9 Aug 2016 07:27:17 +0000 (08:27 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:25:11 +0000 (18:25 +0800)
commit0505555dd44701450323bc15feaef323642ec2ca
tree8dfcdb513241f32abc66222ac275ee4933cce505
parenteea5a25c9236547ad44e03064340c6b63008a30f
crypto: caam - fix non-hmac hashes

Since dd331f1922fd ("crypto: algif_hash - Require setkey before
accept(2)"), the AF_ALG interface requires userspace to provide a key
to any algorithm that has a setkey method.  However, the non-HMAC
algorithms are not keyed, so setting a key is unnecessary.

Fix this by removing the setkey method from the non-keyed hash
algorithms.

Fixes: dd331f1922fd ("crypto: algif_hash - Require setkey before accept(2)")
Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c