netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: nhorman@tuxdriver.com
Cc: linux-sctp@vger.kernel.org, vyasevich@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH] Make hmac algorithm selection for cookie generation dynamic
Date: Tue, 23 Oct 2012 02:32:54 -0400 (EDT)	[thread overview]
Message-ID: <20121023.023254.1960160564751660622.davem@davemloft.net> (raw)
In-Reply-To: <1350661926-8312-1-git-send-email-nhorman@tuxdriver.com>

From: Neil Horman <nhorman@tuxdriver.com>
Date: Fri, 19 Oct 2012 11:52:06 -0400

> Currently sctp allows for the optional use of md5 of sha1 hmac algorithms to
> generate cookie values when establishing new connections via two build time
> config options.  Theres no real reason to make this a static selection.  We can
> add a sysctl that allows for the dynamic selection of these algorithms at run
> time, with the default value determined by the corresponding crypto library
> config options.  It saves us two needless configuration settings and enables the
> freedom for administrators to select which algorithm a particular system uses.
> This comes in handy when, for example running a system in FIPS mode, where use
> of md5 is disallowed, but SHA1 is permitted.
> 
> Note: This new sysctl has no corresponding socket option to select the cookie
> hmac algorithm.  I chose not to implement that intentionally, as RFC 6458
> contains no option for this value, and I opted not to pollute the socket option
> namespace.
> 
> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>

Neil, please use appropriate subject prefixes in your patch
submissions.  In this case "sctp: " would have been appropriate.

Vlad, this patch looks fine to me, but I'd like you to review
it too before I apply it.

Thanks.

  reply	other threads:[~2012-10-23  6:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-19 15:52 [PATCH] Make hmac algorithm selection for cookie generation dynamic Neil Horman
2012-10-23  6:32 ` David Miller [this message]
2012-10-23 13:16   ` Neil Horman
2012-10-24 14:32 ` Vlad Yasevich
2012-10-24 16:01   ` Neil Horman
2012-10-24 16:17     ` Vlad Yasevich
2012-10-24 17:18       ` Neil Horman
2012-10-24 19:20 ` [PATCH v2] sctp: " Neil Horman
2012-10-25 13:09   ` Vlad Yasevich
2012-10-26  6:22     ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121023.023254.1960160564751660622.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-sctp@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=vyasevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).