summaryrefslogtreecommitdiff
path: root/include/crypto/skcipher.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-01-08 21:31:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-19 14:28:35 -0800
commit1a2a01e2ca4e656e64cc1d65ea7950751d04573e (patch)
tree20e846eeb7a33f5d51b971f1aaf1ce91f9548e53 /include/crypto/skcipher.h
parent0859efc0b4488bb10cc46466d91a01aeb802ea3f (diff)
crypto: algif_hash - Require setkey before accept(2)
commit 6de62f15b581f920ade22d758f4c338311c2f0d4 upstream. Hash implementations that require a key may crash if you use them without setting a key. This patch adds the necessary checks so that if you do attempt to use them without a key that we return -ENOKEY instead of proceeding. This patch also adds a compatibility path to support old applications that do acept(2) before setkey. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/crypto/skcipher.h')
0 files changed, 0 insertions, 0 deletions