Re: [TLS] I-D Action: draft-ietf-tls-chacha20-poly1305-01.txt

Adam Langley <agl@imperialviolet.org> Fri, 06 November 2015 19:12 UTC

Return-Path: <alangley@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4FA6B1ACF07 for <tls@ietfa.amsl.com>; Fri, 6 Nov 2015 11:12:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=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 M5pGfmiTAw8e for <tls@ietfa.amsl.com>; Fri, 6 Nov 2015 11:12:45 -0800 (PST)
Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (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 148271ACEFB for <tls@ietf.org>; Fri, 6 Nov 2015 11:12:45 -0800 (PST)
Received: by qgec40 with SMTP id c40so38401519qge.2 for <tls@ietf.org>; Fri, 06 Nov 2015 11:12:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=uMjPYM9IXudrdJwNiJpPyjIvU2DhVYuZuUYDpjxjf/A=; b=VaJMdjsmN/Rv3t/NN4tF41zZyF/NUbzMmOL3T1p4hG3tjKJpxTMsHyBWg0xvjHU0pM JGc0+/0h8TIN3PpMT9bQtUSBd4f6yo63BsYMRdN9DIp7ItZjzWcOe2ueCdwEFALecpQg VJIrXkh3n83WoNdxRuyb/N+TyoT+om100vFtfT53MkoMBSvXharxDVuvjL1o+lUOMMVk sZnkTbKd3pfTTh5mlDlvjbClFvZ4e34DBxBAYGPPwYPf6PZ7L8xqUzMZFd8hOUq2RGZV 6/wvkCL4tEDTQu5L37syBzEov7ZaSN20Rp4oa34NEP993ac7c3xTinZwcoxwHBJdbDqF Vtfg==
MIME-Version: 1.0
X-Received: by 10.140.34.204 with SMTP id l70mr15135359qgl.24.1446837164251; Fri, 06 Nov 2015 11:12:44 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.140.81.241 with HTTP; Fri, 6 Nov 2015 11:12:44 -0800 (PST)
In-Reply-To: <5638E015.3060804@akamai.com>
References: <20151102220617.22528.91021.idtracker@ietfa.amsl.com> <5638E015.3060804@akamai.com>
Date: Fri, 06 Nov 2015 11:12:44 -0800
X-Google-Sender-Auth: XXCPlaP0LWtXk09S5DewP5vlfOs
Message-ID: <CAMfhd9WXP2vrrtX09YudV-h+md=Ns_h+9QSBsFVA=PqorMxf8w@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Benjamin Kaduk <bkaduk@akamai.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/F_G3rY0GQFzpI9y9MBKz3kLXdtI>
Cc: "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [TLS] I-D Action: draft-ietf-tls-chacha20-poly1305-01.txt
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 06 Nov 2015 19:12:46 -0000

On Tue, Nov 3, 2015 at 8:25 AM, Benjamin Kaduk <bkaduk@akamai.com> wrote:
> %   1.  The 64-bit record sequence number is serialized as an 8-byte,
> %       big-endian value and padded on the left with 4 zeroes.
>
> I assume you mean zero octets/bytes, and not ASCII '0' (or EBCDIC, or ...)
>
> "padded on the left" also has some potential for ambiguity (though not as much); something about "four zero octets are prepended to the stream" might be less ambiguous.

Sorry, I missed seeing this for -02, but I now have locally, for the
next revision:

"The 64-bit record sequence number is serialized as an 8-byte,
big-endian value and padded on the left with four 0x00 bytes."


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org