[jose] Re: draft-ietf-jose-hpke-encrypt-01
Les Hazlewood <lhazlewood@gmail.com> Tue, 09 July 2024 02:11 UTC
Return-Path: <lhazlewood@gmail.com>
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 4571BC18DBAB for <jose@ietfa.amsl.com>; Mon, 8 Jul 2024 19:11:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 L7eL2nNHN9tx for <jose@ietfa.amsl.com>; Mon, 8 Jul 2024 19:11:34 -0700 (PDT)
Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 D91A4C18DB9C for <jose@ietf.org>; Mon, 8 Jul 2024 19:11:34 -0700 (PDT)
Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-651961563d6so37884557b3.0 for <jose@ietf.org>; Mon, 08 Jul 2024 19:11:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720491093; x=1721095893; 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=cuM9N+O5IoEbmcIuUrMqGmyo6vnT2IQYHXE4JCpPtHk=; b=M6zH7G8T4OUth6R6ZlT67srK//JUmnmznjU1FceOkoomsEzqGUch014s7SN19OvHSF /0qZ+/8xIBvwmQX5VNTafZvh7Sq55Nmuz3OP4+oTvNZ+3TUgqkSJGiZ9Yqc8xGj+9WZ+ 55kd7Dcgs4H9yI5VbS5wCwqKpQeYRLVxNQdInkUhksSP9QMV0edM8KTu/NAFUQS+XDKQ lu7nd/28+yF+ZUw7J02KXUTE/x+GW0c/dNdwTlRnfbeEqdk9pwrhG/6Y6D1yP3XZ/P0a bQ3XcWQAAcO3R1mPMMNz/TrSYFpfcYvrqP3G8SP2fUhXzWjxaDN+eEpwBNWsg/n44s0Z /FhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720491093; x=1721095893; 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=cuM9N+O5IoEbmcIuUrMqGmyo6vnT2IQYHXE4JCpPtHk=; b=NPvTrpQ3y4nCmaXmFeJkRWKlMPC5iXy2vxyffjQrkbeLIih9VTMRG1EI5zqVMVG64e 8bOddIplSCQ1k6kxM2MAD/BO1ZTOy8wcs1E2/TZ6Ar5IL9lIBpi2co81XVutLiqY2SCD kHO/79FkJ6mE5cAP1KQm5vNq8HHZvAARtbJU5ToiSNxJ+IWTN+kkW/EWF9UbyOwiOtf5 v7+AUtHL6Ly1AFgUrKrJU4dZSIlo5szvdOqru272TELaxBZqTXG/sNMUaRSZM3z1vIPA awnlRwjyL6XcF27M4iqSkx4NV8Y7G8KR/zxt1G116Ksy4x4NFzUU7/GsvSy6JMoWn00Q sxKg==
X-Gm-Message-State: AOJu0YyIch8bsdJ18wckPP5NDBsuY7kP8kMzcsYuF0ddk5ol9drZtoGQ vfqcbX+ZxRsrm9hEbcIC+UosP2F/qYGGm9nHNxIgPgJlDCt6XxryRGlWKPPmOOc3ZNT+jWaWQoU fmbcRzy+LSV6S5xhxOTNujmTeHZjE/qe3
X-Google-Smtp-Source: AGHT+IFTQvrNZHWYi3j/wynbhtlsDL3yM+wu1pDNGP73PeAuiPsHt3bTbmD2Y643EP0tnHd19IuOGnwXXxkkyzXrWb4=
X-Received: by 2002:a0d:e647:0:b0:64b:44f2:70fb with SMTP id 00721157ae682-658f07d6b28mr16073177b3.41.1720491093437; Mon, 08 Jul 2024 19:11:33 -0700 (PDT)
MIME-Version: 1.0
References: <CAN8C-_KMx_M9vL3kwoohkiVrndU_MohxdGC_vLkBo7R_+-6T2g@mail.gmail.com> <CACVbtYOsf7MkHPOzFgE14JhKrSzAd8EkZ0Sr4X0XRMzdCUtbkA@mail.gmail.com> <CACVbtYOOpwTKZt7dH7JV983SmU7gRbsaXY8ru4Ty-+S081oTEQ@mail.gmail.com> <CAN8C-_Kb9ZOec8SXUkqqd3P7VnEYSDukVm56kpdx+fVEw4KHag@mail.gmail.com> <CACVbtYPauBzeSmXPr8Fyb7Jh3u7ydJgX632B0Fwdn4UPgAfQBg@mail.gmail.com>
In-Reply-To: <CACVbtYPauBzeSmXPr8Fyb7Jh3u7ydJgX632B0Fwdn4UPgAfQBg@mail.gmail.com>
From: Les Hazlewood <lhazlewood@gmail.com>
Date: Mon, 08 Jul 2024 19:11:22 -0700
Message-ID: <CACVbtYOKCrqs_tf2QUqJ1P-WWd7WeKw_VMzqgCyCvaaXmqTppA@mail.gmail.com>
To: Orie Steele <orie@transmute.industries>
Content-Type: multipart/alternative; boundary="00000000000076b4d9061cc70c64"
Message-ID-Hash: MTE77X76DL44QZTUOEMD37WCSTJYW6VC
X-Message-ID-Hash: MTE77X76DL44QZTUOEMD37WCSTJYW6VC
X-MailFrom: lhazlewood@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-jose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: JOSE WG <jose@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [jose] Re: draft-ietf-jose-hpke-encrypt-01
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/nbva-ryls9nTFBR7Zx9wuaGwWzc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Owner: <mailto:jose-owner@ietf.org>
List-Post: <mailto:jose@ietf.org>
List-Subscribe: <mailto:jose-join@ietf.org>
List-Unsubscribe: <mailto:jose-leave@ietf.org>
> > Why is JWE HPKE Key Encryption necessary at all? Since HPKE requires > asymmetric keys to be used, what is the use case for encrypting a > direct/shared symmetric key when the recipient must decrypt with their > private key anyway? > Trying to answer my own question: "alg": "HPKE-P256-SHA256", "enc": "A256GCM" would mean a JWE content encryption key would be obtained by executing the KEM to derive a shared secret which is then made uniform by HKDF-SHA256. The output of the HKDF Expand function would be the content encryption key used to directly encrypt the payload using AES 256 GCM. This would imply that the HKDF's `Expand(prk, info, L)` function's `L` input length must be equal to the `enc` required key length (in this example, `256`). Whereas "alg": "HPKE-P256-SHA256-A256GCM", "enc": "A128GCM" would mean a) an ephemeral AEAD secret key (the CEK) would be generated for the `enc` algorithm (e.g. AES 128 GCM) b) this ephemeral AES 128-bit CEK would itself be encrypted using HPKE P256-SHA256-A256GCM b) the ephemeral AES 128-bit CEK would be used to encrypt the recipient payload, and the CEK ciphertext would be included in the recipient header. Then the recipient uses HPKE P256-SHA256-A256GCM to decrypt the CEK ciphertext, producing the CEK, which is then used to decrypt the payload. Is that about right? Les >
- [jose] draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Michael Jones
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 tirumal reddy
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Simo Sorce
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Matt Chanda
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Matt Chanda
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Matt Chanda
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Matt Chanda
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Les Hazlewood
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Orie Steele
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Brian Campbell
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Brian Campbell
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 Ilari Liusvaara
- [jose] Re: draft-ietf-jose-hpke-encrypt-01 - Setu… Matt Chanda