Re: [tcpm] TCP-AO: Text for New_Key Process

Joe Touch <touch@ISI.EDU> Tue, 03 February 2009 05:08 UTC

Return-Path: <tcpm-bounces@ietf.org>
X-Original-To: tcpm-archive@megatron.ietf.org
Delivered-To: ietfarch-tcpm-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4073C3A67FA; Mon, 2 Feb 2009 21:08:30 -0800 (PST)
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 A00433A67FA for <tcpm@core3.amsl.com>; Mon, 2 Feb 2009 21:08:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.481
X-Spam-Level:
X-Spam-Status: No, score=-2.481 tagged_above=-999 required=5 tests=[AWL=0.118, 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 5KU5ImFHPPOC for <tcpm@core3.amsl.com>; Mon, 2 Feb 2009 21:08:29 -0800 (PST)
Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64]) by core3.amsl.com (Postfix) with ESMTP id 00A033A67C0 for <tcpm@ietf.org>; Mon, 2 Feb 2009 21:08:28 -0800 (PST)
Received: from [127.0.0.1] (pool-71-106-119-240.lsanca.dsl-w.verizon.net [71.106.119.240]) by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id n1357UrS026614; Mon, 2 Feb 2009 21:07:44 -0800 (PST)
Message-ID: <4987D110.7020804@isi.edu>
Date: Mon, 02 Feb 2009 21:07:28 -0800
From: Joe Touch <touch@ISI.EDU>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: Eric Rescorla <ekr@networkresonance.com>
References: <7.1.0.9.2.20081219010400.02bfd3d8@gmail.com> <496d9941.18038e0a.5558.ffffd3a6@mx.google.com> <497F7DDC.70309@isi.edu> <20090128162756.3799450822@romeo.rtfm.com> <B33C7F84-66B7-4F2C-9B04-2BC1716C7994@cisco.com> <498618DA.1070308@isi.edu> <20090202162602.D178450822@romeo.rtfm.com> <1233596612.498730c436efe@webmail.isi.edu> <20090203041052.83BCF50822@romeo.rtfm.com>
In-Reply-To: <20090203041052.83BCF50822@romeo.rtfm.com>
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Cc: tcpm@ietf.org, Allison Mankin <mankin@psg.com>, skonduru@juniper.net
Subject: Re: [tcpm] TCP-AO: Text for New_Key Process
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: <https://www.ietf.org/mailman/private/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>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: tcpm-bounces@ietf.org
Errors-To: tcpm-bounces@ietf.org

Eric Rescorla wrote:
...
>>> Well, I don't really favor they ke flag approach, but it occurs to
>>> me that this is easily fixed by replacing the key flag with a 
>>> "ready to use" byte. Recall that the length of the MAC is tied
>>> to the key so if you know the key-id you know the length of the
>>> MAC. This makes the Length byte partly redundant. Accordingly,
>>> you could have the following format:
>>>
>>>  - Kind (1)
>>>  - Length (1)
>>>  - Key-ID (1)
>>>  - Ready-keys [variable]
>>>  - MAC
>> That is variable length, even when the active key has not changed; that means
>> conditional parsing is required, which is cumbersome.
> 
> s/cumbersome/trivial/

Well, if trivial means the following, sure:

1) get the keyID
2) go to the TSAD to get the MAC length
3) pass the KeyID and the MAC pointer = (option start + length - 
mac_length) to the verification alg

Compare that with the current option:

1) pass the keyID and the MAC (i.e., option start + 2) to the 
verification algorithm

Joe

_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www.ietf.org/mailman/listinfo/tcpm