Re: Hardware acceleration and packet number encryption

Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com> Sat, 24 March 2018 16:52 UTC

Return-Path: <mikkelfj@gmail.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 BD09B12D7E6 for <quic@ietfa.amsl.com>; Sat, 24 Mar 2018 09:52:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 YUtpyvIxOrLH for <quic@ietfa.amsl.com>; Sat, 24 Mar 2018 09:52:48 -0700 (PDT)
Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 996E7126D05 for <quic@ietf.org>; Sat, 24 Mar 2018 09:52:48 -0700 (PDT)
Received: by mail-io0-x236.google.com with SMTP id q80so7700053ioi.13 for <quic@ietf.org>; Sat, 24 Mar 2018 09:52:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=z7PMFBkCPcu3+m3hIK99J3tZ17rTpz5/w5CvSBdC0X4=; b=WOr9KyRz5CGP8LryxQBTHTcutO09ViYZlMdDiWTgbggqFpQMneZODB44hOeWqR/Dol xHNTCF51PYv24nM+ohZgWCeFJAYSndVKHMoUibmZXcVFHIJO+I1TeOkpr7dlP0Zfs3pU jnL+8QTzxJJO4HF9UNPSOUZoPoQV20uWVGDkPFftoIyWZm2f9f1oS2C3Yjdb3BMeWMrF H+2npRAsW/iIlSf9PhFyfEZgmmwVjJvg6ErX0siFpaCFwWGAnrB26nQOnXFP2G4DP4V2 MiIaO1kfVvpMeEvefiHDvqcF5SmWofnJFaN50wtkrURuVYIGWUxiU2L6HwcDWiLkyes9 mZpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=z7PMFBkCPcu3+m3hIK99J3tZ17rTpz5/w5CvSBdC0X4=; b=qijDQyxcpR/cMnODznfY585j98dWoFNazMI2zRkUmOldbGyOvaLk+RBzk9uMnDMy6c aJEZHdxgyxZ6LXrVMBxM/+SALfof4cDiubVPmqtxozaf82K+ePcaxZtLdPdrMc+s0YOQ J1O/n4w8wExVbTw6RGxVJ+arl6TilDm9/KloVBRZcBdJoPdcngOkrTwJ1i7DndvQMCKF apnPDI4z79lQ/sDb2/eQEyewYDlw/rYQfzgl9Mk7J0gXzrA5rcZ70l97uslrRB/8tcV/ EUbzKI1Qt2P5w0XbGa0MiF5jMwsLwPfSwh0D2wVUIoyPlCH+jmjet56jzXcKSqoNo1el bwvw==
X-Gm-Message-State: AElRT7EMOBgvp3/ao/tNGpqfFjWhfnaeYv7VYgoXSyY1F9/3QxQlpFWm 56XiwUh4oOJ7OlflW5sLPGQP8GYnpZ6CAJY+fAU=
X-Google-Smtp-Source: AG47ELsG8W96cuv/fwbClrvdBKYGUtYCclGKhvPNic9H5a+54PLzoo/2Fp+ivd3A5d66Z8I1E6+Ch1Lk0Zj6xPQWIpM=
X-Received: by 10.107.6.163 with SMTP id f35mr28372384ioi.165.1521910368023; Sat, 24 Mar 2018 09:52:48 -0700 (PDT)
Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Sat, 24 Mar 2018 12:52:47 -0400
From: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>
In-Reply-To: <CAN1APddex7bOBK9NJ-eYH+c3rLQdif=4z8x+TG_Vhu6OcfVh0Q@mail.gmail.com>
References: <7fd34142-2e14-e383-1f65-bc3ca657576c@huitema.net> <CAN1APde8cps+dt+87_naDc+LOc6Eyo8=d222a8fP8DqRW92+RA@mail.gmail.com> <CAN1APddex7bOBK9NJ-eYH+c3rLQdif=4z8x+TG_Vhu6OcfVh0Q@mail.gmail.com>
X-Mailer: Airmail (420)
MIME-Version: 1.0
Date: Sat, 24 Mar 2018 12:52:47 -0400
Message-ID: <CAN1APddZCiCtsy9uDuMcnSJBfejzumBk2iCKKaF_=rboFoOB=Q@mail.gmail.com>
Subject: Re: Hardware acceleration and packet number encryption
To: Christian Huitema <huitema@huitema.net>
Cc: "Deval, Manasi" <manasi.deval@intel.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="001a113e06a2ddb9bf05682b5e2a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/DIo7mMsP6DS5QMaKZLxmUY1QjCo>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
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: Sat, 24 Mar 2018 16:52:50 -0000

Below ...

On 24 March 2018 at 14.28.21, Mikkel Fahnøe Jørgensen (mikkelfj@gmail.com)
wrote:

Both AES and chachapoly allows up to 96-bit nonce, while we only use 64
bits. Remaining 32 bits are left zero. In that space, we can store
path-id (that
is incremented by one for every new path) to avoid nonce-reuse.


This is the same concept as segmented packet number except the lower PN
bits are encrypted. But if you send three packets in a row on the same path
with a new path id, it is not very difficult to make a qualified guess
about the unencrypted packet number. So why bother encrypting in the first
place using this approach?