Re: [Ntp] The trick to timestamp with authentication

Hal Murray <hmurray@megapathdsl.net> Thu, 03 December 2020 08:08 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 55C8D3A0AA7 for <ntp@ietfa.amsl.com>; Thu, 3 Dec 2020 00:08:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.036
X-Spam-Level: *
X-Spam-Status: No, score=1.036 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] 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 KNbVGOsXdxYW for <ntp@ietfa.amsl.com>; Thu, 3 Dec 2020 00:08:47 -0800 (PST)
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 084CF3A0A1C for <ntp@ietf.org>; Thu, 3 Dec 2020 00:08:46 -0800 (PST)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 7297D40605C; Thu, 3 Dec 2020 00:08:42 -0800 (PST)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Watson Ladd <watsonbladd@gmail.com>
cc: NTP WG <ntp@ietf.org>, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Watson Ladd <watsonbladd@gmail.com> of "Wed, 02 Dec 2020 21:44:04 PST." <CACsn0c=K=T4_ZTGyfGcmNR_e9+7DYOaNBipKjxiNYJYcdYma2g@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 03 Dec 2020 00:08:42 -0800
Message-Id: <20201203080842.7297D40605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/X_KhD4S2HgQWh91BvgNow1MPJAA>
Subject: Re: [Ntp] The trick to timestamp with authentication
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: Thu, 03 Dec 2020 08:08:49 -0000

watsonbladd@gmail.com said:
> AES-GCM and Poly1305 are linear. In order to adjust the timestamp in one
> step, it suffices to line everything up so that the hardware can compute the
> correction in the same cycle as the stamp by isolating the stamp in one block
> of the CWC hash.

I think I'm missing a critical step.  Who/where is doing this "adjusting"?

The whole point of authentication is to prevent MITM "adjustments".

The only place I can see where something like that would make sense would be 
at the transmit network chip.  Why can't it do the whole authentication?  (The 
transmit side has the key.  The receive side can do the adjustment in 
postprocessing software.)


-- 
These are my opinions.  I hate spam.