Re: [Cfrg] RGLC on draft-irtf-cfrg-chacha20-poly1305-01.txt

Adam Langley <agl@imperialviolet.org> Sun, 12 October 2014 17:23 UTC

Return-Path: <alangley@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 A86551A6F71 for <cfrg@ietfa.amsl.com>; Sun, 12 Oct 2014 10:23:01 -0700 (PDT)
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 hoHac12Tawsf for <cfrg@ietfa.amsl.com>; Sun, 12 Oct 2014 10:23:00 -0700 (PDT)
Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45E531A6F34 for <cfrg@irtf.org>; Sun, 12 Oct 2014 10:23:00 -0700 (PDT)
Received: by mail-lb0-f179.google.com with SMTP id l4so5382553lbv.24 for <cfrg@irtf.org>; Sun, 12 Oct 2014 10:22:58 -0700 (PDT)
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:content-transfer-encoding; bh=2wwNcOkdPKS1sc9ZbRqXyGSLe7Hy5+2yPqeechl31Lo=; b=vEzxcKcDRLZ/QQjEMVU8CBffdEd/xG4OqO7+bwIZg9fP84pf6oI6OkCxh8TjrztAq+ aif/rP9t9JuQv0C1Y7x/EcmDjGSOzYj+q5OtFD1e5++GBYN5yy87oUST6+byWCrRBNp5 oEAR+TvLCMZQ0Ll3eCOOue7hD1MHQuxpqZUtHyu7D7wmQ6XSY/dZA5MrhKyhvsvrJ1BW aOddDn14LiNW3oNijzM3gGWwxbUrGKNdRXgwO0VH1EDwo+w9QYYDolTADQu0+XwKrHR6 ttPEXdKfQ8Un0MNynmKl+98Ug2OzjQ6PXg5IirobMTIch8VO2UFFYvJbiF8ZVA8lr0Qq PklQ==
MIME-Version: 1.0
X-Received: by 10.112.17.132 with SMTP id o4mr18617359lbd.52.1413134578533; Sun, 12 Oct 2014 10:22:58 -0700 (PDT)
Sender: alangley@gmail.com
Received: by 10.112.241.103 with HTTP; Sun, 12 Oct 2014 10:22:58 -0700 (PDT)
In-Reply-To: <59B73C9D-3292-4253-A7B0-2E1ABC73FF67@gmail.com>
References: <542D48CD.9060404@isode.com> <CAGvU-a7zd9jB_0vwipe4ALO5u5F0tk5BrfQ-0B5sLNjNRjZiPQ@mail.gmail.com> <9a348a00f974bffba1c3785464cd2032.squirrel@www.trepanning.net> <1CFF7FC2-DDC9-46AF-B574-4126379232DB@gmail.com> <CAMfhd9UQr6wR4ooxfvkNDpmura5oSFask2JhnD+OERDA6tB30A@mail.gmail.com> <def39d05b9dfd967b3219f2bcf1af6a0.squirrel@www.trepanning.net> <59B73C9D-3292-4253-A7B0-2E1ABC73FF67@gmail.com>
Date: Sun, 12 Oct 2014 10:22:58 -0700
X-Google-Sender-Auth: 4_iA-NakB1QajeMlRCkO2cwzTAc
Message-ID: <CAMfhd9UxYW0mzB+DhOM9iuab9gb4krcCqTCMdevTt0pXEmByZA@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Yoav Nir <ynir.ietf@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ArYBzF678Sw0uAqSAphPD7lzLys
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-chacha20-poly1305-01.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: Sun, 12 Oct 2014 17:23:01 -0000

On Sun, Oct 12, 2014 at 8:00 AM, Yoav Nir <ynir.ietf@gmail.com> wrote:
>>  It obviously takes AAD since section 2.8 mentions it as something to
>> include as input to AEAD_CHACHA20-POLY1305. So I'm suggesting you
>> define what AAD looks like when it is delivered to the mode: "Distinct
>> AAD shall be concatenated into a single input to
>> AEAD_CHACHA20-POLY1305", for example.
>
> OK. I’ll add a sentence like that.

Note that concatenating distinct AD inputs is not safe: ["a", "bc"] is
then ambiguous with ["ab", "c"]. Applications are free to use any
scheme they want, but concatenation shouldn't be implicitly endorsed.


Cheers

AGL

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