Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1306358
| From | Milan Broz <gmazyland@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] crypto: algif_skcipher - Add key check exception for cipher_null |
| Date | 2016-01-11 16:00 +0100 |
| Message-ID | <qPM6S-3KB-11@gated-at.bofh.it> (permalink) |
| References | (6 earlier) <qOJXt-29h-29@gated-at.bofh.it> <qOUzv-14L-3@gated-at.bofh.it> <qOYMN-44U-1@gated-at.bofh.it> <qPKHM-2Wj-37@gated-at.bofh.it> <qPKRu-30B-43@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 01/11/2016 02:29 PM, Herbert Xu wrote:
> This patch adds an exception to the key check so that cipher_null
> users may continue to use algif_skcipher without setting a key.
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
>
> diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
> index 110bab4..4a5bdb6 100644
> --- a/crypto/algif_skcipher.c
> +++ b/crypto/algif_skcipher.c
> @@ -978,7 +978,7 @@ static int skcipher_accept_parent(void *private, struct sock *sk)
> {
> struct skcipher_tfm *tfm = private;
>
> - if (!tfm->has_key)
> + if (!tfm->has_key && crypto_skcipher_has_setkey(tfm->skcipher))
> return -ENOKEY;
>
> return skcipher_accept_parent_common(private, sk);
Reported-and-tested-by: Milan Broz <gmazyland@gmail.com>
Thanks,
Milan
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Milan Broz <gmazyland@gmail.com> - 2016-01-02 13:00 +0100
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Milan Broz <gmazyland@gmail.com> - 2016-01-02 15:50 +0100
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Stephan Mueller <smueller@chronox.de> - 2016-01-02 21:10 +0100
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Milan Broz <gmazyland@gmail.com> - 2016-01-02 21:20 +0100
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-03 02:40 +0100
Re: [PATCH v2] crypto: algif_skcipher - Require setkey before accept(2) Milan Broz <gmazyland@gmail.com> - 2016-01-03 10:50 +0100
[PATCH 1/2] crypto: af_alg - Add nokey compatibility path Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-04 05:40 +0100
[PATCH 2/2] crypto: algif_skcipher - Add nokey compatibility path Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-04 05:40 +0100
Re: [PATCH 1/2] crypto: af_alg - Add nokey compatibility path Milan Broz <gmazyland@gmail.com> - 2016-01-04 13:40 +0100
Re: [PATCH 1/2] crypto: af_alg - Add nokey compatibility path Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-08 13:50 +0100
Re: [PATCH 1/2] crypto: af_alg - Add nokey compatibility path Milan Broz <gmazyland@gmail.com> - 2016-01-08 19:30 +0100
Re: [PATCH 1/2] crypto: af_alg - Add nokey compatibility path Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-09 06:50 +0100
Re: [PATCH 1/2] crypto: af_alg - Add nokey compatibility path Milan Broz <gmazyland@gmail.com> - 2016-01-09 11:20 +0100
[PATCH 1/2] crypto: skcipher - Add crypto_skcipher_has_setkey Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-11 14:30 +0100
[PATCH 2/2] crypto: algif_skcipher - Add key check exception for cipher_null Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-11 14:40 +0100
Re: [PATCH 2/2] crypto: algif_skcipher - Add key check exception for cipher_null Milan Broz <gmazyland@gmail.com> - 2016-01-11 16:00 +0100
[PATCH 1/2] crypto: hash - Add crypto_ahash_has_setkey Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-08 14:30 +0100
[PATCH 2/2] crypto: algif_hash - Require setkey before accept(2) Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-08 14:40 +0100
Re: [PATCH 2/2] crypto: algif_hash - Require setkey before accept(2) kbuild test robot <lkp@intel.com> - 2016-01-08 15:00 +0100
Re: [PATCH 2/2] crypto: algif_hash - Require setkey before accept(2) Milan Broz <gmazyland@gmail.com> - 2016-01-09 11:20 +0100
csiph-web