[tcpm] Review of draft-lebovitz-ietf-tcpm-tcp-ao-crypto-00
"Gregory M. Lebovitz" <gregory.ietf@gmail.com> Mon, 23 March 2009 17:33 UTC
Return-Path: <gregory.ietf@gmail.com>
X-Original-To: tcpm@core3.amsl.com
Delivered-To: tcpm@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3D1293A6936 for <tcpm@core3.amsl.com>; Mon, 23 Mar 2009 10:33:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KQDyA96SFRHc for <tcpm@core3.amsl.com>; Mon, 23 Mar 2009 10:33:21 -0700 (PDT)
Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by core3.amsl.com (Postfix) with ESMTP id 0288D3A67C1 for <tcpm@ietf.org>; Mon, 23 Mar 2009 10:33:20 -0700 (PDT)
Received: by yx-out-2324.google.com with SMTP id 8so3444436yxm.49 for <tcpm@ietf.org>; Mon, 23 Mar 2009 10:34:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:x-mailer:date:to :from:subject:in-reply-to:references:mime-version:content-type; bh=rJSIlwf+5IPl6bIIGCYxyvPo2eNFZB7GfP65OQQarIY=; b=W7+fA82zosQT+Um9BN+VUhmT9YBGGc5OY4mCBHoFngU1HrGo4aVEjtYHaquEpiTSTN f7cnjfy5isolCbaWOZI1d0SM9m+bPOWZNkOpDpuuLHmvfUy7QnNLhEDr3hyD0WESCbcs N3Wbe0TKZzXe7hk7iNeLjd/vfXDjcbZ14FTqI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:x-mailer:date:to:from:subject:in-reply-to:references :mime-version:content-type; b=Om3RChNjDp4MsDaomrOBqB0xN6mV97KoDxdXG6p6kDBlDkODoIvzh8tr5WKOdVxpMJ JNJXNxN3eJhFVFjbbCMxXGn89VZ9qEFl1fM9jXZU+k7b5WIMlO187G4YRJj4wmOrKigY W2SUzzNIUQFDd4B28VFEGbJgiKCiNAQyxsO4g=
Received: by 10.143.166.10 with SMTP id t10mr2951730wfo.210.1237829649893; Mon, 23 Mar 2009 10:34:09 -0700 (PDT)
Received: from Gregory-T60.gmail.com (dhcp-14dc.meeting.ietf.org [130.129.20.220]) by mx.google.com with ESMTPS id 30sm11714761wfa.38.2009.03.23.10.34.07 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Mar 2009 10:34:09 -0700 (PDT)
Message-ID: <49c7c811.1e018e0a.6ac9.ffffbfcb@mx.google.com>
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
Date: Mon, 23 Mar 2009 10:34:09 -0700
To: Eric Rescorla <ekr@networkresonance.com>, tcpm@ietf.org
From: "Gregory M. Lebovitz" <gregory.ietf@gmail.com>
In-Reply-To: <20090320003241.E345150822@romeo.rtfm.com>
References: <86r60tf31x.wl%ekr@networkresonance.com> <20090320003241.E345150822@romeo.rtfm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Subject: [tcpm] Review of draft-lebovitz-ietf-tcpm-tcp-ao-crypto-00
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tcpm>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Mar 2009 17:33:22 -0000
Hey all,
So far EKR's is the only review I've seen of this draft. And many of
you might have missed it, for the wrong subject line he used. So I'm
resending my one and only precious review to the list w/ correct subject line.
Gregory.
At 05:32 PM 3/19/2009, Eric Rescorla wrote:
>At Thu, 19 Mar 2009 17:31:06 -0700,
>Doh. This review was of draft-lebovitz-ietf-tcpm-tcp-ao-crypto-00
>
>A review of auth-opt is forthcoming.
>-Ekr
>
>
>At Thu, 19 Mar 2009 17:31:06 -0700,
>Eric Rescorla wrote:
> >
> > [Resent from an account that's subscribed.]
> >
> > -Ekr
> >
> > $Id: draft-lebovitz-ietf-tcpm-tcp-ao-crypto-00-rev.txt,v 1.1
> 2009/03/19 22:37:19 ekr Exp $
> >
> > S 2.1.
> > This whole {SHOULD,MUST}{+,-,*,?} thing is a bad idea. It's hard
> > enough for developers to understand SHOULD vs. MUST, but now we have 5
> > separate options for implementors to understand and us to argue
> > over. I don't remember there being WG consensus on this point.
> >
> >
> > S 2.2.
> > The assignment of HMAC-SHA-1 to MUST- and AES-CMAC to SHOULD+ is
> > basically unjustified. There's no good reason to believe that
> > HMAC-SHA1 will be broken before AES-CMAC. This is exactly the
> > confusion fostered by the +/- regime. Make HMAC-SHA1 MUST and
> > AES-CMAC SHOULD.
> >
> >
> > S 3.
> > You repeat the phrase "Each MAC algorithm MUST..." twice.
> >
> >
> > S 3.1.
> > It's confusing to talk about KDFs having an interface and then
> > have the function named "PRF".
> >
> > I would rewrite this as:
> >
> > All KDFs used in TCP-AO have the following interface:
> >
> > Derived_Key = KDF(Master_Key, Context, Output_Length)
> >
> > Where these values are defined as.... [blah blah]
> >
> > Then:
> > The KDFs defined in this document are all based on pseudorandom
> > functions (PRFs) which take a key and an input and emit a
> > fixed-length pseudorandom value. Given PRF X, the associated
> > KDF, KDF_X, is constructed as follows:
> >
> > KDF_X(Master_Key, Context, Output_Length) =
> > X(Master_Key, Input)
> >
> > Where Input is constructed as:...
> >
> > Where you say that the master key isn't random, that's not quite
> > right. The point is not that it doesn't contain high entropy.
> > For instance HEX(X) where X is a 128-bit random number has high
> > entropy but may or may not be suitable for use keying a MAC
> > function.
> >
> > This section of the document is pretty confusing about the concept of
> > output length. To recap:
> >
> > 1. The underlying PRFs have fixed sized output lengths, 128 bits in the
> > case of AES-CMAC, 160 bits in the case of HMAC-SHA1.
> > 2. It is possible to generate an arbitrary number of output bits with
> > a given PRF by operating it in a feedback or counter mode.
> > The FIPS-whatever KDFs incorporate this feature, hence the
> > leading "0".
> > 3. Each MAC needs a key of a specific length.
> > 4. Not totally uncoincidentally, the KDFs we have chosen to use with
> > each MAC happen to generate the right key size for use with the
> > MAC, thus avoiding the need for the procedure in (2).
> > 5. If you wanted to use these KDFs with a MAC requiring a longer key
> > (e.g., HMAC-SHA-256) you would, however need to use the procedure.
> > 6. For some reason, the FIPS-whatever KDFs seem to think it's
> > a useful idea to mix the desired number of bits produced by the
> > KDF into the KDF input. I don't see the point of this, but
> > whatever.
> >
> > You'll note that the PRF does not need to be parametrized in terms
> > of output length. It's fixed.
> >
> > IMO, this could be a lot clearer.
> >
> > S 3.1.1.
> > Is this an ASCII 0 (0x30) or a NUL (0x00)
> >
> >
> > S 3.1.2.
> > It's pretty unclear what problem you're trying to solve here. I would
> > write:
> >
> > RFC 4615 is designed to take an arbitrary length key but for any
> > key length other than 128 bits, whitens it by first computing an
> > AES-CMAC with key 0. Because the keys in use with TCP-AO will
> > likely be arbitrary-length ASCII strings, TCP AO always performs
> > this whitening step even if the key happens to be 16 bytes long.
> > In other words, using the terminology of RFC 4615:
> >
> > K = AES-CMAC(0^128, MK, MKlen)
> >
> >
> > S 4.
> > This UI labels section should be entirely removed. As far as I know,
> > there was never WG consensus to include it and it just creates
> > extra confusion. In AO, the MAC completely defines the KDF, so
> > the concept of suites just adds an extra name. Moreover, since
> > MACs have obvious names and the suites have opaque, confusing names,
> > this is doubly bad.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>_______________________________________________
>tcpm mailing list
>tcpm@ietf.org
>https://www.ietf.org/mailman/listinfo/tcpm
- [tcpm] Review of draft-tcp-mtcp-auth-opt-04 Eric Rescorla
- Re: [tcpm] Review of draft-tcp-mtcp-auth-opt-04 Eric Rescorla
- [tcpm] Review of draft-lebovitz-ietf-tcpm-tcp-ao-… Gregory M. Lebovitz
- Re: [tcpm] Review of draft-lebovitz-ietf-tcpm-tcp… Gregory M. Lebovitz