Re: [TLS] a slightly different DTLSShortCiphertext

Martin Thomson <martin.thomson@gmail.com> Sun, 04 March 2018 23:11 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 34E87126B72 for <tls@ietfa.amsl.com>; Sun, 4 Mar 2018 15:11:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 U9oruGzJeGu1 for <tls@ietfa.amsl.com>; Sun, 4 Mar 2018 15:11:57 -0800 (PST)
Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (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 B8BDB124217 for <tls@ietf.org>; Sun, 4 Mar 2018 15:11:57 -0800 (PST)
Received: by mail-oi0-x233.google.com with SMTP id a207so10754292oii.10 for <tls@ietf.org>; Sun, 04 Mar 2018 15:11:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wb0jeV/fcPJ0rQ81O5qT+Mb6mKdzl+oIsG2GT3Ii5Ek=; b=OS7j9bXWHwEeutO6goXmwf6vsvOAzUeKXUG7eXH+BSMoPDEPdc8b2jzADNTOI5CF6N CdJgCZdrVR24xwoMt3mPbFnth3Pjyv8w0fSjL6SUbDH9KQpEMuEi6gjHwgWujvNEEqcG ugqetzFwUacbHs8xzb/BnbcyNmP1Rc4kg+Kwi9pJ4fSZfkrkNVNubCjSoEncBtUYdW2S Srf8SNzzeCCm4Y9Z8UfOkIrbebF81gnda9+JAX7rA9fuh543e3rI/djRMT66WOVQbB/a nUh2nnTsTWbf4sF9TIJzwPAJP5gbUN1Cq58eW9POElwxtqmxAkC/iUxl7tfsiYVZKgYY v62Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wb0jeV/fcPJ0rQ81O5qT+Mb6mKdzl+oIsG2GT3Ii5Ek=; b=LXGsNgVl8LJl45oz+2igxQJck9yNiCFwqYpleEo3dXvzgrnxFeOZu0l/b8U/lntBCM EJaT1voWBjxxX2KpiBcPnxqO2UBdIKoqaU+t3XGbslckzN3/j6IE5WGVbIQe9swkd3ox gudR/nJQgbe5jN1BMu91ulS25nDU9qaRJ4Hn/AtxQj+lvYQNb2XQ/UNy8aFFPaNkioHS B8X3G1SWLmDFiLQZyY3ntc7o9QdHoFErUxrDeZbX90iXd/09ZKcutoJ89lMQb1IV37Ic 1fj5aHnDSdTOYVBlUVlR9vABYUUeu5BZbW/71eGB1JJeSEbrWHf3uxRYCbtuh/jidVDo +/vw==
X-Gm-Message-State: AElRT7HQTWp2gj8dpCw2lYtUwnixW9ALOCDTdYDYo+DKu9moYwb+Eq06 0Yol2u96tUOfy5fXbmaMFgs3ys59cSyzMRt27lg=
X-Google-Smtp-Source: AG47ELsYGFUrlvKSC1a31TneJ3+muUUZ63om26TABxubfsYhPR8uAxC3BT2/PhjKxP1oPP2aMmvzk5CiJEb2t9zoVMk=
X-Received: by 10.202.245.140 with SMTP id t134mr7847755oih.144.1520205116996; Sun, 04 Mar 2018 15:11:56 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.16.85 with HTTP; Sun, 4 Mar 2018 15:11:56 -0800 (PST)
In-Reply-To: <E531E112-CCA8-4C7C-B96B-66A7434940CD@nokia.com>
References: <E531E112-CCA8-4C7C-B96B-66A7434940CD@nokia.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 05 Mar 2018 10:11:56 +1100
Message-ID: <CABkgnnWc3GnGJd80-W=tJ+LpSbaioMOC3jh7CmEkYp=4=Y29SA@mail.gmail.com>
To: "Fossati, Thomas (Nokia - GB/Cambridge)" <thomas.fossati@nokia.com>
Cc: "tls@ietf.org" <tls@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/aD503R6QTmNYphmRC-kETBzhlto>
Subject: Re: [TLS] a slightly different DTLSShortCiphertext
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Mar 2018 23:11:59 -0000

We are about to remove that bit from the QUIC packet.  I don't see any
advantage in adding it here.

Can you explain in more detail who you think consumes this bit?

On Sun, Mar 4, 2018 at 4:33 AM, Fossati, Thomas (Nokia - GB/Cambridge)
<thomas.fossati@nokia.com> wrote:
> Hi all,
>
> In an off-list discussion on the wire format for DTLS CID Eric raised
> the point that a DTLSShortCiphertext header is completely stuffed, and
> it'd be impossible to grab another bit from the sequence number (already
> down to 12 bits) to signal the presence of a CID.
>
> I made a proposal for a slightly different layout of DTLSShortCiphertext
> that makes room for the CID bit, which I'd like to bring to the list for
> further scrutiny:
>
>  0                   1                   2                   3
>  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> |0|0|1|E|C|X|X|X|            sequence           |               |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
> |                                                               |
> +                                                               +
> |                                                               |
> +                   [CID,] encrypted_record                     +
> |                                                               |
> +                                                               +
> |                                                               |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>  0                   1                   2                   3
>
> Where:
> - First 4 bits are the same as in current DTLSShortCiphertext (demux +
>   low order epoch bit)
> - Subsequent 4 bits are: C, the connection-id indicator followed by 3
>   reserved bits (to be greased, I suppose)
> - Then, a 16-bit sequence number.
>
> It'd still be 4 bytes shorter than usual DTLSCiphertext, so I guess it's
> OK to keep calling it "short".  There is the question about these 3
> reserved bits, which seem like good candidates for greasing, I guess.
>
> What do people think?
>
> Cheers, thanks
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls