Re: [sfc] Roman Danyliw's Discuss on draft-ietf-sfc-nsh-integrity-06: (with DISCUSS and COMMENT)

Benjamin Kaduk <kaduk@mit.edu> Thu, 15 July 2021 19:36 UTC

Return-Path: <kaduk@mit.edu>
X-Original-To: sfc@ietfa.amsl.com
Delivered-To: sfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9EFB33A08C2; Thu, 15 Jul 2021 12:36:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LQFcSyDJ2lQM; Thu, 15 Jul 2021 12:36:24 -0700 (PDT)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2480F3A08AE; Thu, 15 Jul 2021 12:36:23 -0700 (PDT)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 16FJaB1W002338 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jul 2021 15:36:16 -0400
Date: Thu, 15 Jul 2021 12:36:11 -0700
From: Benjamin Kaduk <kaduk@mit.edu>
To: tirumal reddy <kondtir@gmail.com>
Cc: Roman Danyliw <rdd@cert.org>, gregimirsky@gmail.com, draft-ietf-sfc-nsh-integrity@ietf.org, sfc-chairs@ietf.org, The IESG <iesg@ietf.org>, sfc@ietf.org
Message-ID: <20210715193611.GV74365@kduck.mit.edu>
References: <162620296297.3569.2501497601980031548@ietfa.amsl.com> <CAFpG3gc5_Cr3E-ZvRq6tMYOFRN-D8iHODBzYh5K-xqXQpSES+w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAFpG3gc5_Cr3E-ZvRq6tMYOFRN-D8iHODBzYh5K-xqXQpSES+w@mail.gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/sfc/DrrkcQgt3mtWvITC6VUwbpLuhv8>
Subject: Re: [sfc] Roman Danyliw's Discuss on draft-ietf-sfc-nsh-integrity-06: (with DISCUSS and COMMENT)
X-BeenThere: sfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Service Chaining <sfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sfc>, <mailto:sfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sfc/>
List-Post: <mailto:sfc@ietf.org>
List-Help: <mailto:sfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sfc>, <mailto:sfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jul 2021 19:36:29 -0000

On Wed, Jul 14, 2021 at 02:57:42PM +0530, tirumal reddy wrote:
> Hi Roman,
> 
> Please see inline
> 
> On Wed, 14 Jul 2021 at 00:33, Roman Danyliw via Datatracker <
> noreply@ietf.org> wrote:
> 
[...]
> >
> > -- The text would benefit from a description on how to serialize the
> > packet for
> > hashing.  For example, Figure 6 and 7 are helpful logical descriptions of
> > the
> > integrity scope.  However, the MAC field itself is depicted as part of the
> > what
> > should get hashed.  Should that field be zeroed out? Removed ?
> >
> 
> Yes, we will update text as follows:
> 
> The NSH imposer sets the MAC field to zero and then computes the message
> integrity for the target NSH data (depending on the integrity protection
> scope discussed in Section 5) using MAC_KEY and HMAC algorithm. It inserts
> the computed digest in the MAC field in the "MAC and Encrypted Metadata"
> Context Header.

It's probably also worth updating the description of the verification
procedures to match; we typically see these done in tandem.

-Ben