Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-00.txt

Yoav Nir <ynir.ietf@gmail.com> Tue, 05 August 2014 06:06 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 045581B28F5 for <cfrg@ietfa.amsl.com>; Mon, 4 Aug 2014 23:06:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, SPF_PASS=-0.001] autolearn=ham
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 iSu6qt5Z1zpY for <cfrg@ietfa.amsl.com>; Mon, 4 Aug 2014 23:06:41 -0700 (PDT)
Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B8F7C1B2839 for <cfrg@ietf.org>; Mon, 4 Aug 2014 23:06:40 -0700 (PDT)
Received: by mail-wi0-f176.google.com with SMTP id bs8so6305293wib.3 for <cfrg@ietf.org>; Mon, 04 Aug 2014 23:06:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=2PEF4IuBcwdNTSKE17oN/hyDzSRar0Ii1uyJDN4elSw=; b=zQ1LKevR7azAjawHIEyu7iEDyHqKXVpUPl7EyNPll6guVy5zr7iuhFe96XHVqGuTtf MO2o5FXhf5Irffsjk18a+knP8SJNDlo2Mvq6x1ml4mPm9vvc+GYyPJAFwZb0fhFbfvEP 9p6W8oDQlsaZ2xGDuKABbeaoDD0wLpLzVkpem09jRHYYtvRQ73CVO4nEM4dSacWF/OC7 kz6Yn3GREtnLWSEXkVXeadWtRJGmJ+oD056DOSDsmPrGCD4Wyutxi6TLRJKgQx5t2si6 48ipu8HkXvN/bUBUgU1hRU0u4xF1HznpAgqz1smASBF8Ys0Ia9i+h/LJfCaXJha7paOn CUKQ==
X-Received: by 10.194.100.34 with SMTP id ev2mr2417176wjb.76.1407218799237; Mon, 04 Aug 2014 23:06:39 -0700 (PDT)
Received: from [192.168.1.103] (bzq-84-109-50-18.red.bezeqint.net. [84.109.50.18]) by mx.google.com with ESMTPSA id bf3sm4370661wib.18.2014.08.04.23.06.37 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 23:06:38 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_1B3FEC80-8AD1-44E5-9726-B1E5D8C1355E"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <535F2867-E8C6-42B9-940C-891FC452EC88@whittington.net.nz>
Date: Tue, 05 Aug 2014 09:06:36 +0300
Message-Id: <54F95F99-AE4D-4934-8054-C04C2E248671@gmail.com>
References: <20140723213400.18686.14504.idtracker@ietfa.amsl.com> <535F2867-E8C6-42B9-940C-891FC452EC88@whittington.net.nz>
To: Tim Whittington <cfrg@whittington.net.nz>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/K52WjViBIdANUxARy1rsXyTeQBM
Cc: cfrg@ietf.org
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Aug 2014 06:06:45 -0000

Hi, Tim.

The original text (copied from some page Google turned up by searching for “Jabberwocky” is as follows:

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

The hex representation shows any non-printable character (code<32 or code>=127) as a period.
So only the last character in the test vector is an actual period.

Hope this helps

Yoav

On Aug 5, 2014, at 5:27 AM, Tim Whittington <cfrg@whittington.net.nz> wrote:

> I note that there is a repeated error in the HEX <-> ASCII conversion for the test vectors that use the phrase "'Twas brillig, and the slithy roves…”:
> - A.2, Test Vector #3
> - A.3, Test Vector #4
> 
> I can verify the test vectors using the hex plaintext, but this is not representative of the actual text.
> Specifically all but the last period (ASCII 0x2e) in the text are 0x0A in the hex representation.
> 
> The error is also in draft-nir-cfrg-chacha20-poly1305.
> 
> cheers
> tim
> 
> 
> 
> On 24/07/2014, at 9:34 am, internet-drafts@ietf.org wrote:
> 
>> 
>> A New Internet-Draft is available from the on-line Internet-Drafts directories.
>> This draft is a work item of the Crypto Forum Research Group Working Group of the IETF.
>> 
>>       Title           : ChaCha20 and Poly1305 for IETF protocols
>>       Authors         : Yoav Nir
>>                         Adam Langley
>> 	Filename        : draft-irtf-cfrg-chacha20-poly1305-00.txt
>> 	Pages           : 38
>> 	Date            : 2014-07-23
>> 
>> Abstract:
>>  This document defines the ChaCha20 stream cipher, as well as the use
>>  of the Poly1305 authenticator, both as stand-alone algorithms, and as
>>  a "combined mode", or Authenticated Encryption with Additional Data
>>  (AEAD) algorithm.
>> 
>>  This document does not introduce any new crypto, but is meant to
>>  serve as a stable reference and an implementation guide.
>> 
>> 
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/
>> 
>> There's also a htmlized version available at:
>> http://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly1305-00
>> 
>> 
>> Please note that it may take a couple of minutes from the time of submission
>> until the htmlized version and diff are available at tools.ietf.org.
>> 
>> Internet-Drafts are also available by anonymous FTP at:
>> ftp://ftp.ietf.org/internet-drafts/
>> 
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
> 
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg