aboutsummaryrefslogtreecommitdiff
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-10-27 17:29:39 +0300
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:01 +0200
commit570f46919b474cbcd8f6880d89e3ab40ddb5f206 (patch)
treeff0ae3a8ad76296a5c97d607c07859e83b423155 /crypto/anubis.c
parent1b7a8ec10acd4e767c0ea952693a4aa16b7a016c (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. Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions