[tcpm] handling variable length keys in draft-lebovitz-ietf-tcpm-tcp-ao-crypto

"Polk, William T." <william.polk@nist.gov> Sun, 26 July 2009 15:44 UTC

Return-Path: <william.polk@nist.gov>
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 6029E3A63EB for <tcpm@core3.amsl.com>; Sun, 26 Jul 2009 08:44:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.792
X-Spam-Level:
X-Spam-Status: No, score=-6.792 tagged_above=-999 required=5 tests=[AWL=-0.193, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 GfKIu49FrbOx for <tcpm@core3.amsl.com>; Sun, 26 Jul 2009 08:44:03 -0700 (PDT)
Received: from smtp.nist.gov (rimp2.nist.gov [129.6.16.227]) by core3.amsl.com (Postfix) with ESMTP id 5FAF23A69AB for <tcpm@ietf.org>; Sun, 26 Jul 2009 08:43:46 -0700 (PDT)
Received: from WSXGHUB1.xchange.nist.gov (wsxghub1.nist.gov [129.6.18.96]) by smtp.nist.gov (8.13.1/8.13.1) with ESMTP id n6QFhdsB006885; Sun, 26 Jul 2009 11:43:39 -0400
Received: from MBCLUSTER.xchange.nist.gov ([fe80::d479:3188:aec0:cb66]) by WSXGHUB1.xchange.nist.gov ([2002:8106:1260::8106:1260]) with mapi; Sun, 26 Jul 2009 11:43:39 -0400
From: "Polk, William T." <william.polk@nist.gov>
To: "gregory.ietf@gmail.com" <gregory.ietf@gmail.com>, "mcgrew@cisco.com" <mcgrew@cisco.com>
Date: Sun, 26 Jul 2009 11:40:50 -0400
Thread-Topic: handling variable length keys in draft-lebovitz-ietf-tcpm-tcp-ao-crypto
Thread-Index: AQHKDgfXKGETfA/aWkKnhV49u9jzAg==
Message-ID: <D7A0423E5E193F40BE6E94126930C49307859925B8@MBCLUSTER.xchange.nist.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-NIST-MailScanner: Found to be clean
X-NIST-MailScanner-From: william.polk@nist.gov
X-Mailman-Approved-At: Mon, 27 Jul 2009 08:02:15 -0700
Cc: "housley@vigilsec.com" <housley@vigilsec.com>, "tcpm@ietf.org" <tcpm@ietf.org>, "Pasi.Eronen@nokia.com" <Pasi.Eronen@nokia.com>
Subject: [tcpm] handling variable length keys in draft-lebovitz-ietf-tcpm-tcp-ao-crypto
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: Sun, 26 Jul 2009 15:44:04 -0000

Gregory,

As requested, Pasi and I took a look at how draft-lebovitz-ietf-tcpm-tcp-ao-crypto
handles the AES-CMAC case when the master key is not 128 bits.

The method currently used (using AES-CMAC with a known fixed key as a
"randomness extractor") is basically the same as used in IKEv2 (RFC
4615 and 4434), except IKEv2 uses all-zeroes key (but the specific
value of the known fixed key shouldn't matter much -- just pick one).

Using the same method in TCP-AO would be acceptable us, and seems
strongly preferable to requiring network admins to configure exactly
128 bit keys.

Other methods of getting from "what the admin configures" to 128 bits
could work, too. Since the output of this step is *only* used as the
key for further PRF calculations (and for *nothing* else), the
requirements for it are very limited. If all keys were <= 128 bits,
even something trivial such as padding with zeroes would work -- so
this step doesn't even have to be one-way.  Since we need to handle
also keys >128 bits, simple padding isn't enough, of course. If the WG
wants AES-only method, the one that's in the draft now seems OK to us.

I hope this was helpful.

Tim Polk
Pasi Eronen