Re: [jose] [COSE] HPKE PartyU / PartyV

Orie Steele <orie@transmute.industries> Mon, 04 March 2024 13:09 UTC

Return-Path: <orie@transmute.industries>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A501EC151985 for <jose@ietfa.amsl.com>; Mon, 4 Mar 2024 05:09:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=transmute.industries
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U2zd150eDH-k for <jose@ietfa.amsl.com>; Mon, 4 Mar 2024 05:09:33 -0800 (PST)
Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 595A2C151701 for <jose@ietf.org>; Mon, 4 Mar 2024 05:09:33 -0800 (PST)
Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-29b31254820so1123722a91.0 for <jose@ietf.org>; Mon, 04 Mar 2024 05:09:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=transmute.industries; s=google; t=1709557773; x=1710162573; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e3EimBHfetduqRadYTPbGK/qK3+LqkKUrdXopN8qkVU=; b=atWCnzCnokIZapRzuWCh1K4neGGgXeANVcT0JsoVEzIDhp8Ra+whBiTfp8iEPFW4d4 kBgDtoRx5nBwTEgfAb+1m238Cuw+pc4LPa4Wkd6WfoI0x7GvxYNDbIUDEAdlxguKuuz7 z0kwVP3hSFIAZSAtm59BHZWKyjZ9ZNpVUJsRni596DJ1IULVN8ZBNHki4AtmcjeNfJsR 5Fj1/XWgyjhRe9DaDbg2ABpzzIdhqW5WEfrSQyo8HQQy2y4RH2kr30Bn8AI4DsFCd8bW cUZ1lbu2RV6vTIuazqL80RcaX6BJr3MEGqlgyfmtMfzj1yl+uS0EUDK2KSAT1e3G4S5M Xrjw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709557773; x=1710162573; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e3EimBHfetduqRadYTPbGK/qK3+LqkKUrdXopN8qkVU=; b=q5PfDeSnJ4w580kLom8mu/cAZ7oqN9Ibw43uLBhJGkOJoX2wVtqGv1C7H/aC1ePvRe odnjFpALp3QSEtddZSjrKLK1GRq2N9JSuSH/Ey6eXNaHRUhRawFicETjfkUkyZnTkIWX HNPPcp6MwQ8OlCsj+Y1bFvJZ+LVttvVaxRHwDYJKMKtVmBRzBzoVyy3nHN5rLS7ZBjk0 M1na9z1kVJY0cNDG/o6E8S7Y7+7ckeJUFabNgvLf+IBjkhUoxRmjg/b/YmpzCdmQyv6l pH40VBGPA6iJNMbLfxiX1rM69pQsrkkNyuoa5hhsPdhc/EjCpTMCeNdPwvbf7f4I3Sbm +Wrw==
X-Gm-Message-State: AOJu0YxFAW4ZGFia85Y3kfhIPZqjzp1JNtmm6MaswTlukY7fJVu7m24H 4UMvMu5dbrn362GYWM3Uuy/RWhcc1O1wsYBJp93xXjoqWBqX2yLxs91GIJuki4ln+HR7KuEI6rn B/MYcY0T4ymgSPQOXpxlDSLA0ENmgESaNx84p1g00pCk3KnPlHLo=
X-Google-Smtp-Source: AGHT+IE5yFKPtPTMHrPhPUS885zwPLAWvpbTj8auaqLcaH4ncC3u1mNA4adWohpdahnlRAVZyFaabKa0+wPteOtNVsQ=
X-Received: by 2002:a17:90a:734b:b0:299:3f36:48e3 with SMTP id j11-20020a17090a734b00b002993f3648e3mr5816256pjs.11.1709557772694; Mon, 04 Mar 2024 05:09:32 -0800 (PST)
MIME-Version: 1.0
References: <Zd-NRA2kH4fc_d-X@LK-Perkele-VII2.locald> <CAN8C-_+tG9845bn986Anr89ObNpUCzOAuiEJMPh4KGK3ixB+uQ@mail.gmail.com> <Zd-colj_jF47gLQP@LK-Perkele-VII2.locald> <CAN8C-_Jw2J6OY6N7gRVepVuHiC5NqgH36dXQ6krZ1U-Spqq7fQ@mail.gmail.com> <ZeCZJK76cQNZp7q9@LK-Perkele-VII2.locald> <CAN8C-_+_nzGCWV6zNny1j_9TTikW8rBtw9388YB7UGzSwEzoTw@mail.gmail.com> <ZeDih4he5eZ1y3PO@LK-Perkele-VII2.locald> <729F40F3-B0EC-41EF-A0D2-FD8EDEA39D56@island-resort.com> <CAFWvErWwfkT7cz4R-jMt+3-54ywyVwBjE=Lita7TwsQEi04TTw@mail.gmail.com> <2CDCCF72-F32D-410D-8BB3-7984D38104D3@island-resort.com> <ZeWHPzzRfNtSIlo5@LK-Perkele-VII2.locald>
In-Reply-To: <ZeWHPzzRfNtSIlo5@LK-Perkele-VII2.locald>
From: Orie Steele <orie@transmute.industries>
Date: Mon, 04 Mar 2024 07:09:21 -0600
Message-ID: <CAN8C-_LSB8gzK3-7D3EX_cn8LU83esxmHtq07qY8qyDNFh+cvA@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: JOSE WG <jose@ietf.org>, cose <cose@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c3d0c60612d56f7e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/fflLNumKTUEFcjDQ9c18yINuN6s>
Subject: Re: [jose] [COSE] HPKE PartyU / PartyV
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Mar 2024 13:09:37 -0000

I agree.

Neither draft has multiple messages.

The single message is plaintext or a content encryption key.

Based on conventions:

The context for the message should be bound via AAD and Enc Structure in
COSE, and AAD and base64url encoded protected headers in JOSE.


OS

On Mon, Mar 4, 2024, 2:40 AM Ilari Liusvaara <ilariliusvaara@welho.com>
wrote:

> On Sun, Mar 03, 2024 at 06:42:41PM +0000, lgl island-resort.com wrote:
> >
> > If you read the paragraph before you get more context and more
> > understanding why there’s both. Seems more like efficiency / economy
> > trade-off. You don’t really need both. There’s no security reason
> > for one or the other.
>
> With single message, it seems like a bad trade-off:
>
> - aad is faster, as it is polymac instead of full-blown hash function.
> - aad is much easier to implement without allocations, as it is not
>   part of some larger structure.
> - aad is trivially secure from definition of AEAD, but security of
>   info does not trivially follow.
>
> With multiple messages, there are reasons to use both, but I can not
> come up with any actual reason to use info with a single message.
>
>
>
>
> -Ilari
>
> _______________________________________________
> COSE mailing list
> COSE@ietf.org
> https://www.ietf.org/mailman/listinfo/cose
>