Re: Packet Number Encryption outside of AEAD

Ian Swett <ianswett@google.com> Thu, 26 July 2018 16:52 UTC

Return-Path: <ianswett@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23DB6130E0E for <quic@ietfa.amsl.com>; Thu, 26 Jul 2018 09:52:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.509
X-Spam-Level:
X-Spam-Status: No, score=-17.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 elyVn74Tb0Dh for <quic@ietfa.amsl.com>; Thu, 26 Jul 2018 09:52:44 -0700 (PDT)
Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B74EF12F1AC for <quic@ietf.org>; Thu, 26 Jul 2018 09:52:44 -0700 (PDT)
Received: by mail-yw0-x235.google.com with SMTP id z143-v6so815611ywa.7 for <quic@ietf.org>; Thu, 26 Jul 2018 09:52:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8wiAuN0JMMl7/WJRMmkhJqebBGXr/CNI71ohFbCnXs8=; b=Y/vqxaU55X2OecFjrt6xZqxj3r3qg4Fou6pCSdfmF4PuwMz424qAPlazDfhtKgwvBW UEwTM5kJQFJPh5qnO8zB8KeF+dAeXlJmAA2dSYYXVqLJSjMfJD2gpsAZP5vIafQdCc98 P0aXwuY6/9m5MV9sT/Cw6atNmKqn77it7cKYcSpfVHfdrycx5Ndy60cYv4xk/S9AK/5p kiRQfLQxONM3bcM3r82GYumgqb/5J7sNeNTL41LbG7c7/W3zpcRhwSNXPOetLRRGPKlY srXDQl6jbq0yLMHeSequlYckfYdHjBDtQC2qp57QSlSJZJdMOskJCBpV2ryLvPqGk8fw HeQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8wiAuN0JMMl7/WJRMmkhJqebBGXr/CNI71ohFbCnXs8=; b=m7CO3/HbyVNZBfYNtUJ1GT3wYKqT7NrDm8eMWmcmMbyht4Xjbt9Uztt8ReWjlH6avm 50JLGOlbATo2HmUVpEiFuYnu9u1TQt+vIVJrk5DCuaIUr90KupUfWC3KcaJBN/0hxuaz E5v7bCJV7csQoqvoS84ypcUSBAk1GIEKyUkc9x9WrBRtO54npbQQWxXN3QVsKViArlpA aNDye57zywtDutV6POOrKVN+0tCySKLN4V2FG5iUcBWk2PoNx3gG4espjTx7Q6czUwKS IzM3941M/K9a9jsIfNsSza8SerPutxxriy476eMQwhPXWjP1WKAKyH0yzgBPF6/vvSu7 RtFg==
X-Gm-Message-State: AOUpUlHNWUTgk8UF7g3ddAm2yrTUg5FBrt+iXGdZ0Z/mvwOyZ2MNCc0r /PfzA364r/xXJmw01C7X7N0qBhfeI1/wfLhSsFr5pw==
X-Google-Smtp-Source: AAOMgpfEIm4U3kdBKyJMkSL0ds/edwPuHbw0n30qLyJ0335E9PEWUxJEj3dbX/5yd+8NpXNWDdWGrvAjbv9FfCxj0KY=
X-Received: by 2002:a81:2c0a:: with SMTP id s10-v6mr1405664yws.335.1532623963567; Thu, 26 Jul 2018 09:52:43 -0700 (PDT)
MIME-Version: 1.0
References: <CAN1APdcCdPGVEHJh4FiQBirunHUxY7HV_idYPtyQT09Fe-fSUw@mail.gmail.com>
In-Reply-To: <CAN1APdcCdPGVEHJh4FiQBirunHUxY7HV_idYPtyQT09Fe-fSUw@mail.gmail.com>
From: Ian Swett <ianswett@google.com>
Date: Thu, 26 Jul 2018 12:52:32 -0400
Message-ID: <CAKcm_gP2nmP1_xAd9zobPHKmmAxqisCx2sr5+1jgXQC=3XZQbw@mail.gmail.com>
Subject: Re: Packet Number Encryption outside of AEAD
To: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>
Cc: IETF QUIC WG <quic@ietf.org>, "Deval, Manasi" <manasi.deval@intel.com>, borisp@mellanox.com
Content-Type: multipart/alternative; boundary="000000000000ecf4af0571e9d23e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/xnZ6Qe5CcRjtmf706DIMLiCqosQ>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jul 2018 16:52:47 -0000

That seems like a reasonable suggestion to me.

Adding Boris and Manasi to see if they also think it'll make hardware
offload easier?

On Thu, Jul 26, 2018 at 2:22 AM Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>
wrote:

> I created the following issue a while ago but go no response, so perhaps
> it should have been discussed on this list:
>
> https://github.com/quicwg/base-drafts/issues/1578
>
> The issues covers the point, but in summary:
>
> If the packet format is kept as it is today, but the packet number is not
> included in the authenticated data when computing the AEAD tag, then the
> decoder need not modify the received packet buffer when decoding the packet
> number. This can lead to more efficient hardware implementations and make
> multi-processor buffer sharing more effective.
>
> Mikkel
>