Re: [CFRG] HPKE and AEAD Authentication Tag Length

Joseph Salowey <joe@salowey.net> Tue, 24 August 2021 05:24 UTC

Return-Path: <joe@salowey.net>
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 D34113A0EFB for <cfrg@ietfa.amsl.com>; Mon, 23 Aug 2021 22:24:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=salowey-net.20150623.gappssmtp.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 NiyU0Oak48ik for <cfrg@ietfa.amsl.com>; Mon, 23 Aug 2021 22:24:52 -0700 (PDT)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (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 313203A0EF9 for <cfrg@irtf.org>; Mon, 23 Aug 2021 22:24:52 -0700 (PDT)
Received: by mail-lj1-x22b.google.com with SMTP id w4so33954998ljh.13 for <cfrg@irtf.org>; Mon, 23 Aug 2021 22:24:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salowey-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sy7s/fyf+qDuENes/ZBqUNPMFGvhDkPsPusYHBvmOdY=; b=VhfjrZrAJo8DfRxvDIsR1EUofdqe/wrQjDSJGz9ICtZrUilRiPXN1KZeHEMD1wwIYn C3+0vXQ/QukWElYH+5X8/z5hbgfd4sx9S0qbK8aZzJuOJjC7g4LtuPwAK5G+lFLi6cBJ XO7YlEiAplwGgy517kPyHPUl5TzDsbI6uVLONzFmfPP5nMP+IWtjv7/PNaOmr1kiy2hq 3T7SwToUGSZd8z1IJIg2kip2WANj8/sVUWRLKWe/RjcWdisLA4PruP8pmMx0UFRye2S8 fGufJ9d9cu7j+Qh1rTs4Ykam57KErehKQQkXZuZef8J9ZwUnyr9zOL4djdBpoofgJr1f xqGg==
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=sy7s/fyf+qDuENes/ZBqUNPMFGvhDkPsPusYHBvmOdY=; b=RdojprcCdRbONlhV7TpDDni+BV2LUzJnDYtOkoLYb+Yw34Hx8zK4pmtIjwsNwRq2ZZ cwnMOUJWOE8X7aqNpnCfPByQRFZOnOMuEWbzc7hMZPnDcNRPhttGje2oB4jm4HafocH1 DZ7l5DCV8goSM47z0m4kRB2d/mSe0ZXY1tJ2Dl3VwJVEo4W7NhGcc0RA/bOlCO8CZLV2 L4XkLI4VtRP2FTXQ+9WlOP5V3V7mUz13scpPUEXhon+ZKhQlMu/VvAhFe2Jwi9BADUJd VbQwkajocaWdaR0MDY3I8qvEoNdldNsRisPnzc0J1SwkJadSwisUOP+Acg4B0fbp45jt he2A==
X-Gm-Message-State: AOAM5315+wErsGhJ33lwtGsD2YDgDe1kvJA9lxioE11emGWvUT0DA+Xn mXSje9OTRoxtGgXdQcCLBlB2+EI1n4xEtC+vPFbGyQ==
X-Google-Smtp-Source: ABdhPJwMR9gjYvp4BtNBG65ArsykpvVGmBQyG6GeM5zh3bHeujfp2ArQZeU5Nn7XKwn8I8FdVSOoqRNgyWiHcyGMeL4=
X-Received: by 2002:a05:651c:1784:: with SMTP id bn4mr30358477ljb.371.1629782688545; Mon, 23 Aug 2021 22:24:48 -0700 (PDT)
MIME-Version: 1.0
References: <CAOgPGoBK9Lq0D+ufJRYowXPcKJuT8gf81ZpJ0=RZzG8-f0=fpQ@mail.gmail.com> <14bb1ce1-9ee5-4a3a-a637-f1d8f448c08e@www.fastmail.com>
In-Reply-To: <14bb1ce1-9ee5-4a3a-a637-f1d8f448c08e@www.fastmail.com>
From: Joseph Salowey <joe@salowey.net>
Date: Mon, 23 Aug 2021 22:24:37 -0700
Message-ID: <CAOgPGoBdSSiH=erYE0OV2hVCupUaGH3NU15DyiY4FfnQTuPg-A@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: IRTF CFRG <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="00000000000036526c05ca475ae6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/TuzVtr3awuuyPz67gIJUOdNiH4Y>
Subject: Re: [CFRG] HPKE and AEAD Authentication Tag Length
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: Tue, 24 Aug 2021 05:24:59 -0000

On Mon, Aug 23, 2021 at 6:24 PM Martin Thomson <mt@lowentropy.net> wrote:

> Curiously, the length of the tag is not in contention for any of these
> AEADs.  It's only if we take on something like CCM or OCB that it becomes
> relevant.
>
>
[Joe] There are short length tags defined for AES-GCM [RFC 5282] and some
implementations allow/force you to choose the tag length.   The HPKE draft
points to the NIST document for AES-GCM which also parameterizes the tag
length.   The draft also defines its own registry instead of reusing the
one defined by RFC 5116 which is very specific about tag length.




> On Tue, Aug 24, 2021, at 04:52, Joseph Salowey wrote:
> > In working on a Java HPKE implementation I found that specification
> > does not specify anything about the authentication tag length for the
> > AEAD cipher.  I opened issue #283
> > <https://github.com/cfrg/draft-irtf-cfrg-hpke/issues/238> and proposed
> > PR 239 <https://github.com/cfrg/draft-irtf-cfrg-hpke/pull/239> to
> > address this.
> >
> > Cheers,
> >
> > Joe
> > _______________________________________________
> > CFRG mailing list
> > CFRG@irtf.org
> > https://www.irtf.org/mailman/listinfo/cfrg
> >
>
> _______________________________________________
> CFRG mailing list
> CFRG@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>