commit | 6de62f15b581f920ade22d758f4c338311c2f0d4 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 08 21:31:04 2016 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Jan 18 18:16:11 2016 +0800 |
tree | d896de006eb54d7cafbf16dce5ce8da46462780b | |
parent | a5596d6332787fd383b3b5427b41f94254430827 [diff] |
crypto: algif_hash - Require setkey before accept(2) 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. Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>