Re: [CFRG] AES-CTR + HMAC-SHA-256 AEAD

Adam Langley <agl@imperialviolet.org> Mon, 15 March 2021 16:44 UTC

Return-Path: <alangley@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89A773A1697 for <cfrg@ietfa.amsl.com>; Mon, 15 Mar 2021 09:44:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.899
X-Spam-Level:
X-Spam-Status: No, score=-0.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, SUBJ_ALL_CAPS=0.5, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=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 RI5MXic4y5tk for <cfrg@ietfa.amsl.com>; Mon, 15 Mar 2021 09:44:10 -0700 (PDT)
Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (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 2E6A03A1695 for <cfrg@ietf.org>; Mon, 15 Mar 2021 09:44:10 -0700 (PDT)
Received: by mail-qv1-f42.google.com with SMTP id q9so2617040qvm.6 for <cfrg@ietf.org>; Mon, 15 Mar 2021 09:44:10 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JVJVzthueO2wbxgbS9G294D6PyOYiTgu1Jdb6W2EU3Q=; b=YWEjLD+NKG49tHA638lxx/9isfl1mWahn+bK5cDnYJsi3Mr0gL+rD30EaHN20yp1fr EYxyGypvSxZkIOFBBUdW5pcdWYsseVA++9QCRp9ap6ZQy90r0fl3KWIzgobWOFHH9aoa 1Kv+7OijNnSxlnJ/1hEo/ARk6zmr15wPmEIhsTgbPLu17/dgING2vxoi/sCguXNJ/mu9 nlHv3XAB0gtN8V4i0MeenXkbgXMuCpx1BjpD4rnj2u/qwxqWQJpaeVeiSqWNqhQUFr7z gwjDbLOsfHfv7EPGw32x/zafrj6FGlx3kJ5J6mahU/S/da7QDX5rw+dU79R+zqLEEauy t9ng==
X-Gm-Message-State: AOAM532bYEfHZS00RZushy7c50axyRJr56Ok9ASuUnIYLhEe5/57nJnr zBU+CtlPDrDC98BZXRe7b91p/64oqMLEpTGLamcd5cEPvtE=
X-Google-Smtp-Source: ABdhPJxHybMsNJmagH5Q4ZsFrqXac4F2O7xLSNk16ByEgbrLPyNY/1DUptwChFmDB5cZpqnhorXIsrlRUz/O2Ao/stQ=
X-Received: by 2002:a05:6214:15d1:: with SMTP id p17mr11579316qvz.28.1615826649143; Mon, 15 Mar 2021 09:44:09 -0700 (PDT)
MIME-Version: 1.0
References: <5E976EFE-CF76-49CA-A02E-9189EB609988@ericsson.com> <CAMfhd9UFJvQQOpz22CvuZ=thSqCeQkwtSCKiaH+spDB5N8OTLg@mail.gmail.com> <DE3B1E99-C75A-4F31-ACE8-0E1ABE4B40E6@ericsson.com>
In-Reply-To: <DE3B1E99-C75A-4F31-ACE8-0E1ABE4B40E6@ericsson.com>
From: Adam Langley <agl@imperialviolet.org>
Date: Mon, 15 Mar 2021 09:43:58 -0700
Message-ID: <CAMfhd9XJ5oApfW8d7trivZqEG_H1ZLDdwxuBG7w3MEDHMAjQYw@mail.gmail.com>
To: John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000070dbcf05bd95f597"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/UzTkPBaL4anPxcmPRYW8SG47zV0>
Subject: Re: [CFRG] AES-CTR + HMAC-SHA-256 AEAD
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Mar 2021 16:44:12 -0000

On Sat, Mar 13, 2021 at 12:15 AM John Mattsson <john.mattsson=
40ericsson.com@dmarc.ietf.org> wrote:

> Adam Langley wrote:
>
> >I don't know what AES-CM is. Is it AES-CTR?
>
>
>
> Yes, Counter Mode (CM) is just CTR. The terminology CM was used in RFC
> 3711 (SRTP) and McGrew’s paper from the same time.
> https://cr.yp.to/bib/2002/mcgrew.pdf.
>
>
>
>
>
> I wrote:
>
> “It looks like the frame counter CTR and the block counter collide, but
> maybe I miss something.”.
>
>
>
> A better description is probably that it is undefined how the 12 byte
> nonce is mapped to the 16 byte IV in AES counter mode. I would recommend:
>
>
>
> frame_ctr = encode_big_endian(CTR * 2^64, 16)
>

I think it's more than underspecified, I don't think it meets basic AEAD
requirements. I'll contact the authors about that.


Cheers

AGL