Home
last modified time | relevance | path

Searched hist:dd504589577d8e8e70f51f997ad487a4cb6c026f (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/crypto/
H A Dalgif_skcipher.cdiff dd504589577d8e8e70f51f997ad487a4cb6c026f Fri Dec 25 01:40:05 CST 2015 Herbert Xu <herbert@gondor.apana.org.au> crypto: algif_skcipher - Require setkey before accept(2)

Some cipher implementations will crash if you try to use them
without calling setkey first. This patch adds a check so that
the accept(2) call will fail with -ENOKEY if setkey hasn't been
done on the socket yet.

Cc: stable@vger.kernel.org
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Dmitry Vyukov <dvyukov@google.com>