netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tom St Denis <tstdenis@elliptictech.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	David Dillow <dave@thedillows.org>
Subject: Re: IPsec AH use of ahash
Date: Sun, 20 Jan 2013 19:46:44 -0500 (EST)	[thread overview]
Message-ID: <1675719618.94034.1358729204255.JavaMail.root@elliptictech.com> (raw)
In-Reply-To: <8b7b5c2c-1e9f-4390-8492-a21cf8566d55@email.android.com>



----- Original Message -----
> From: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
> To: "Tom St Denis" <tstdenis@elliptictech.com>, "David Dillow" <dave@thedillows.org>
> Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
> Sent: Sunday, 20 January, 2013 3:30:49 PM
> Subject: Re: IPsec AH use of ahash
> 
> Look at it from the kernel end. What happens if your change shows up
> bugs on another architecture or has a flaw. It works for you now but
> you plan to dump and run. That's not a viable long term development
> model for upstream.

Alan, I'm really not trying to be rude but if you look at the depth of the patch I was submitting ... it's not architecture specific, it's 90% copied from another source file that is currently in the tree, I have actually tested it on x86_32/arm already as it is, etc.  I agree that more core pieces of architecture specific code would require tighter scrutiny but this is hardly the case here. 

> The licence allows you to do it, and other parties who care more to
> pick it up and run with it. Unless someone does however it's just a
> burden. If nobody wants it upstream enough better it stays out
> perhaps - if the call is wrong eventually other people will care
> enoug to share the work. If not you get to pick between doing the
> extra or re-porting your code to new releases

Realistically, the CryptoAPI maintainers should have added CMAC long ago.  I mean they sought fit to add non-standard modes like VMAC or Serpent [or Twofish or ...] but not a NIST standard like CMAC which is used in RFCs for IPsec [among other things]?  Are they writing crypto for Kernel users or is this their pet project where they get to hack together random bits of ciphering what not for their own amusement?

Sure few people are clamouring to use CMAC over say HMAC for MAC generation but it is a standard and it's prevalent enough that supporting it is a good idea.

Forcing me to go through a new testing cycle just because you'd prefer

if (expr)
   foo;

Instead of 

if (expr) {
   foo;
}

or 

err = expr;
if (err) ...

instead of 

if ((err = expr)) ...

is not a good use of anyones time.  And it's hypocritical given that I sourced that coding style from code that is already in the kernel.

Tom

  reply	other threads:[~2013-01-21  0:46 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <528051367.70594.1358268708738.JavaMail.root@elliptictech.com>
2013-01-16  6:21 ` IPsec AH use of ahash Steffen Klassert
2013-01-18 19:35   ` Tom St Denis
2013-01-18 19:50     ` David Miller
2013-01-18 20:53       ` Tom St Denis
2013-01-18 22:16         ` Waskiewicz Jr, Peter P
2013-01-18 22:31           ` Tom St Denis
2013-01-19  2:33             ` Michal Kubecek
2013-01-19  2:59               ` Tom St Denis
2013-01-19  3:59               ` Eric Dumazet
2013-01-19 10:30                 ` Tom St Denis
2013-01-19 15:46                   ` Eric Dumazet
2013-01-20  5:06                   ` Mike Galbraith
2013-01-20 10:31                     ` Borislav Petkov
2013-01-20 12:56                       ` Tom St Denis
2013-01-20 13:34                         ` Alexander Holler
2013-01-20 13:54                           ` Tom St Denis
2013-01-30 22:16                             ` Jan Engelhardt
2013-01-20 22:07                         ` Steven Rostedt
2013-01-21  0:47                           ` Tom St Denis
2013-01-20 12:55                     ` Tom St Denis
2013-01-20 14:11                       ` Mike Galbraith
2013-01-20 15:07                         ` Tom St Denis
2013-01-20 16:34                           ` David Dillow
2013-01-20 17:40                             ` Tom St Denis
2013-01-20 18:11                               ` David Dillow
2013-01-20 18:47                                 ` Tom St Denis
2013-01-20 22:54                                   ` Steven Rostedt
2013-01-21  0:34                                     ` Borislav Petkov
2013-01-21  0:40                                       ` Tom St Denis
2013-01-21  1:08                                         ` Borislav Petkov
2013-01-21  9:18                                         ` David Dillow
2013-01-21 10:20                                           ` Tom St Denis
2013-01-21 13:38                                             ` Steven Rostedt
2013-01-21 13:45                                               ` Tom St Denis
2013-01-21 14:37                                                 ` Steven Rostedt
2013-01-21 14:51                                                   ` Tom St Denis
2013-01-21 15:28                                                     ` Steven Rostedt
2013-01-21 15:31                                                       ` Tom St Denis
2013-01-21 15:49                                                         ` Chris Friesen
2013-01-21 16:05                                                           ` Tom St Denis
2013-01-20 20:30                               ` Alan Cox
2013-01-21  0:46                                 ` Tom St Denis [this message]
2013-01-20 17:03                           ` H. Peter Anvin
2013-01-20 17:33                             ` Tom St Denis

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=1675719618.94034.1358729204255.JavaMail.root@elliptictech.com \
    --to=tstdenis@elliptictech.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dave@thedillows.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).