Re: [ntpwg] Parsing NTP packets regarding MACs and EXTs.

Hal Murray <hmurray@megapathdsl.net> Tue, 21 June 2016 09:40 UTC

Return-Path: <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>
X-Original-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Delivered-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC9AE12B026 for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 21 Jun 2016 02:40:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.325
X-Spam-Level:
X-Spam-Status: No, score=-8.325 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426] 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 RBjEpbQ1oLYK for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 21 Jun 2016 02:40:04 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [IPv6:2001:4f8:fff7:1::7]) by ietfa.amsl.com (Postfix) with ESMTP id 1B3C412B004 for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 21 Jun 2016 02:40:04 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by lists.ntp.org (Postfix) with ESMTP id 158DE86DAF9 for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 21 Jun 2016 09:40:03 +0000 (UTC)
X-Original-To: ntpwg@lists.ntp.org
Delivered-To: ntpwg@lists.ntp.org
Received: from mail1.ntp.org (mail1.ntp.org [IPv6:2001:4f8:fff7:1::5]) by lists.ntp.org (Postfix) with ESMTP id AFA3B86D55E for <ntpwg@lists.ntp.org>; Tue, 21 Jun 2016 09:39:46 +0000 (UTC)
Received: from mail225c25.carrierzone.com ([64.29.147.239] helo=mail24c25.carrierzone.com) by mail1.ntp.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from <hmurray@megapathdsl.net>) id 1bFI9h-0008zZ-1z; Tue, 21 Jun 2016 09:39:46 +0000
X-POP-User: hmurray@megapathdsl.net
Received: from ip-64-139-1-69.sjc.megapath.net (ip-64-139-1-69.sjc.megapath.net [64.139.1.69]) by mail24c25.carrierzone.com (8.14.9/8.13.1) with ESMTP id u5L9dXjZ019182; Tue, 21 Jun 2016 09:39:34 +0000
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id BD9A7406057; Tue, 21 Jun 2016 02:39:32 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Harlan Stenn <stenn@ntp.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Harlan Stenn <stenn@ntp.org> of "Tue, 21 Jun 2016 03:25:32 -0000." <E1bFCJh-000G0C-Bf@stenn.ntp.org>
Mime-Version: 1.0
Date: Tue, 21 Jun 2016 02:39:32 -0700
Message-Id: <20160621093932.BD9A7406057@ip-64-139-1-69.sjc.megapath.net>
X-CSC: 0
X-CHA: v=2.1 cv=Tv3f2lnh c=1 sm=1 tr=0 a=OWgXOY7Tc8w5m7k7nGX6Zw==:117 a=OWgXOY7Tc8w5m7k7nGX6Zw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=pD_ry4oyNxEA:10 a=85N1-lAfAAAA:8 a=ZeZnmlGtwkf9VyR14moA:9 a=CjuIK1q_8ugA:10 a=cyfSibbquD4hpIoiQNSb:22
X-CTCH-RefID: str=0001.0A010204.57690B56.00C9, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0
X-CTCH-VOD: Unknown
X-CTCH-Spam: Unknown
X-CTCH-Score: 0.000
X-CTCH-Rules:
X-CTCH-Flags: 0
X-CTCH-ScoreCust: 0.000
X-SA-Exim-Connect-IP: 64.29.147.239
X-SA-Exim-Rcpt-To: stenn@ntp.org, ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: hmurray@megapathdsl.net
X-SA-Exim-Version: 4.2
X-SA-Exim-Scanned: Yes (on mail1.ntp.org)
Subject: Re: [ntpwg] Parsing NTP packets regarding MACs and EXTs.
X-BeenThere: ntpwg@lists.ntp.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: IETF Working Group for Network Time Protocol <ntpwg.lists.ntp.org>
List-Unsubscribe: <http://lists.ntp.org/options/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=unsubscribe>
List-Archive: <http://lists.ntp.org/pipermail/ntpwg/>
List-Post: <mailto:ntpwg@lists.ntp.org>
List-Help: <mailto:ntpwg-request@lists.ntp.org?subject=help>
List-Subscribe: <http://lists.ntp.org/listinfo/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=subscribe>
Cc: ntpwg@lists.ntp.org, hmurray@megapathdsl.net
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org
Sender: ntpwg <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>

stenn@ntp.org said:
>> 2. A MAC field is 20 bytes or less.
> We have a recollection that this has sometimes been larger, but we haven't
> gone thru some of the older code to see when this might have changed.  I
> know we intended to support longer MACs.

What do you mean by "MAC field"?

The simple shared key MACs include a 4 byte header.  MD5 mode has a 16 byte 
hash for 20 bytes total.  SHA1 has a 20 byte hash for a 24 byte total.


stenn@ntp.org said:
> A legacy MAC is well-formed.  We know where it's coming from.  We know what
> keyID we're expecting from that source. 

I don't understand what you mean by "know where it's coming from".  The 
server doesn't know which clients will be using which keys.


-- 
These are my opinions.  I hate spam.



_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg