diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-08 21:31:04 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-18 18:16:11 +0800 |
commit | af44f48c34c04fd549fa71de3e430f298f1484f5 (patch) | |
tree | 2d3b3085a0d734a2f1f2765870270e34b42e450b /crypto/zlib.c | |
parent | bd57898bac03e310b9eea53b23c26d5a743cd94b (diff) | |
download | linux-crypto-af44f48c34c04fd549fa71de3e430f298f1484f5.tar.gz linux-crypto-af44f48c34c04fd549fa71de3e430f298f1484f5.zip |
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>
Diffstat (limited to 'crypto/zlib.c')
0 files changed, 0 insertions, 0 deletions