Re: [Ntp] Antw: Re: Antw: [EXT] Re: Benjamin Kaduk's Discuss on draft-ietf-ntp-mode-6-cmds-09: (with DISCUSS and COMMENT)

Hal Murray <hmurray@megapathdsl.net> Mon, 31 August 2020 22:52 UTC

Return-Path: <hmurray@megapathdsl.net>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B84B13A053F for <ntp@ietfa.amsl.com>; Mon, 31 Aug 2020 15:52:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.037
X-Spam-Level: *
X-Spam-Status: No, score=1.037 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no 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 SNXyjDxs57u0 for <ntp@ietfa.amsl.com>; Mon, 31 Aug 2020 15:52:45 -0700 (PDT)
Received: from ip-64-139-1-69.sjc.megapath.net (ip-64-139-1-69.sjc.megapath.net [64.139.1.69]) by ietfa.amsl.com (Postfix) with ESMTP id 8E30A3A03F1 for <ntp@ietf.org>; Mon, 31 Aug 2020 15:52:44 -0700 (PDT)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id A3FD940605C; Mon, 31 Aug 2020 15:52:43 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
cc: Hal Murray <hmurray@megapathdsl.net>, "ntp@ietf.org" <ntp@ietf.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> of "Mon, 31 Aug 2020 10:58:49 +0200." <5F4CBBC9020000A10003B009@gwsmtp.uni-regensburg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 31 Aug 2020 15:52:43 -0700
Message-Id: <20200831225243.A3FD940605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/2G5tUQ_3yrefIRS5EGTE5akVHQY>
Subject: Re: [Ntp] Antw: Re: Antw: [EXT] Re: Benjamin Kaduk's Discuss on draft-ietf-ntp-mode-6-cmds-09: (with DISCUSS and COMMENT)
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Aug 2020 22:52:47 -0000

Ulrich.Windl@rz.uni-regensburg.de said:
> Original comment from NTP source:
>         /*
>          * Parse the extension field if present. We figure out whether
>          * an extension field is present by measuring the MAC size. If
>          * the number of words following the packet header is 0, no MAC
>          * is present and the packet is not authenticated. If 1, the
>          * packet is a crypto-NAK; if 3, the packet is authenticated
>          * with DES; if 5, the packet is authenticated with MD5; if 6,
>          * the packet is authenticated with SHA. If 2 or * 4, the packet
>          * is a runt and discarded forthwith. If greater than 6, an
>          * extension field is present, so we subtract the length of the
>          * field and go around again.
>          */ 

I think that comment is out of date.

ntpsec gets the algorithm from the keys file.  I am less familiar with the 
reference implementation, but I'm pretty sure it does the same.

If nothing else, the above comment won't work with AES, RFC-8573, which is the 
same length as MD5.

-- 
These are my opinions.  I hate spam.