[jose] Re: [COSE] Re: Fwd: New Version Notification for draft-reddy-cose-jose-pqc-kem-02.txt
tirumal reddy <kondtir@gmail.com> Thu, 11 July 2024 12:46 UTC
Return-Path: <kondtir@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 4F04CC180B64; Thu, 11 Jul 2024 05:46:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=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 FJYo6xk35XE7; Thu, 11 Jul 2024 05:46:07 -0700 (PDT)
Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 5F59EC180B5F; Thu, 11 Jul 2024 05:46:07 -0700 (PDT)
Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-57d0ea30e87so153929a12.1; Thu, 11 Jul 2024 05:46:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720701965; x=1721306765; 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=+iN88JDJ2yjYvbTINP0IUa2DdEns0NBlC5DpuMJFJSM=; b=edRRwxV0NXa4OT0JfAkNP7Fk2Fq6UgJn1fZ+Jk0ci/GLBp87n61No1hw24BrAlmqrY Mlh7/IpDN0dYrUYk3o3Jjfytju9GYP25MZeV0uFWSm0dafTHvcGMglWP0l8DE3d5pHJ1 YJsXMiIgkvAqvXe1sIJIAjNz941gJwvdhTpuMqHXZkNE761iiKSmUIpbd87mTRWl1Uwk nsCiiM/9eaNFPjcpgT9MeDHNboHv4dpkpe8ba3+Mucn+b9n3HNkp1oCWX8bdho/STdSD qglcn4IGnVEQzxwesRuZmWaK/K6IbN/IuU7+c2ZAuhV5OAlVQXel8farqpXnWBvsOD4q bkKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720701965; x=1721306765; 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=+iN88JDJ2yjYvbTINP0IUa2DdEns0NBlC5DpuMJFJSM=; b=KgLw9H3Y0SM6OjenXjUGv72Y0lP9W2KN3YYpaqzFn2lj+I1ldljS5BqS5gDfbqahA6 rdtrIHefOC1JDDh6mLq8TBHKaiYgpDN0Det0wpzdUWakjsuVSgeUU+WDx15a7ZH59fHH KYnLFaANIqdZX7ngOfluPIbR5uKvDjgoOlTWdjtGVVQXR2BN323vHxkaJWaBcAkqIZo+ DCdIEhEix9qGPFcNhsjR6l4TAvxOHKhG1bw6iRbZ5KbumvxvsoiAiQ07qJBus5G678U5 H/HVuh50s/SQLogk2TjHKkU9eRNlhZF1Lzaa5/OUb67XnW25S51PVsvkiM/eTNhrAt0s Rlgg==
X-Forwarded-Encrypted: i=1; AJvYcCX4egfjYVjdOcCt8HpR0QVSPchTEc7OvZYgcfi0r250R6YResgMm7vb+yT/tYnliOwsj/oQYRcoLZ9u455e
X-Gm-Message-State: AOJu0YxIl4B7vE9jOPfK5/mmdoSAGJzsOK/k6SAbR+yKS2TUJB4ej+dX ibM/NNtdsYSihfdIB7r69FRur2naoh/lvipmeHkm+GRZRvIUjTJoqe4Bb8RVtCo+FCcyOf8fSui fyQzZae2GTscjfG2eq5tWciC/YtY=
X-Google-Smtp-Source: AGHT+IEA0++MfWQhI8WGOVCvhuRJGFSxxhdsIQ6q1wV373vDMv9l+bV3Q4ye/N8kQKhtUBig8l3Sz41u5tDtboTjjsw=
X-Received: by 2002:a17:906:4a91:b0:a77:eb34:3b41 with SMTP id a640c23a62f3a-a798b2b0292mr116035166b.2.1720701965198; Thu, 11 Jul 2024 05:46:05 -0700 (PDT)
MIME-Version: 1.0
References: <172044966080.465321.1376291147750239654@dt-datatracker-5f88556585-j5r2h> <CAFpG3gdnW4ggZK9UOmQMDCKo+QX=CcNkcc1Wkw6T-Rs3A02csw@mail.gmail.com> <Zo1YmzydHLvy6LoA@LK-Perkele-VII2.locald>
In-Reply-To: <Zo1YmzydHLvy6LoA@LK-Perkele-VII2.locald>
From: tirumal reddy <kondtir@gmail.com>
Date: Thu, 11 Jul 2024 18:15:28 +0530
Message-ID: <CAFpG3gcXy7AnDqAfyeP11g8VzQqm=B3_zPrnzdk=4_M7+qB5eQ@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Content-Type: multipart/alternative; boundary="0000000000006670f5061cf8253a"
Message-ID-Hash: RQ7OAU5JQIPJJT5DGKY352L3V2TLDCYX
X-Message-ID-Hash: RQ7OAU5JQIPJJT5DGKY352L3V2TLDCYX
X-MailFrom: kondtir@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>, cose <cose@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [jose] Re: [COSE] Re: Fwd: New Version Notification for draft-reddy-cose-jose-pqc-kem-02.txt
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/1-RS8LspIEWBrvaYmlQKCVwSnnA>
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>
Hi Illari, Thanks for the review. Please see inline On Tue, 9 Jul 2024 at 21:05, Ilari Liusvaara <ilariliusvaara@welho.com> wrote: > On Tue, Jul 09, 2024 at 05:00:52PM +0530, tirumal reddy wrote: > > Hi all, > > > > Revised draft > > https://www.ietf.org/archive/id/draft-reddy-cose-jose-pqc-kem-02.html > addresses > > comments from the WG. > > Further comments and suggestions are welcome. > > > > ---------- Forwarded message --------- > > From: <internet-drafts@ietf.org> > > Date: Mon, 8 Jul 2024 at 20:11 > > Subject: New Version Notification for > draft-reddy-cose-jose-pqc-kem-02.txt > > To: Tirumaleswar Reddy.K <kondtir@gmail.com>, Aritra Banerjee < > > aritra.banerjee@nokia.com>, Hannes Tschofenig <Hannes.Tschofenig@gmx.net > >, > > Hannes Tschofenig <hannes.tschofenig@gmx.net> > > > > > > A new version of Internet-Draft draft-reddy-cose-jose-pqc-kem-02.txt has > > been > > successfully submitted by Tirumaleswar Reddy and posted to the > > IETF repository. > > > > Name: draft-reddy-cose-jose-pqc-kem > > Revision: 02 > > Title: Post-Quantum Key Encapsulation Mechanisms (PQ KEMs) for JOSE > and > > COSE > > Date: 2024-07-08 > > Group: Individual Submission > > Pages: 19 > > > Some comments: > > Section 5.1. Key Derivation for JOSE: > > The inputs "PartyUInfo", "PartyVInfo", "SuppPubInfo" and "SuppPrivInfo" > are missing. Those should be just copied from JWA section 4.6.2. > I thought these parameters were not required (the current version of JOSE HPKE does not use them). I will update the draft to re-use the inputs. > > "CipherText" is not valid input to Concat KDF. There is no need to > bind ciphertext: ML-KEM is already IND-CCA and forwarding-resistant, > which is enough for any ordinary encryption. > > MAL-BIND-K-CT or MAL-BIND-K-PK would require security proof that > ML-KEM is safe to use in protocol. Which is not possible to prove, > because MAL-BIND-K-CT or MAL-BIND-K-PK adversary can just trivially > break all security. > It is added to provide the same level of security properties as the HPKE and Hybrid HPKE (draft-connolly-cfrg-hpke-mlkem). Both offer MAL-BIND-K-CT and MAL-BIND-K-PK, whereas ML-KEM only provides MAL-BIND-K-PK. > > > Section 5.2. Key Derivation for COSE: > > > Why does this not just use the RFC9053 COSE_KDF_Context? > > - The structure name conflicting with the existing RFC9053 structure is > sure to cause confusion. > Yes, added a new structure name. > - Why have PartyUInfo and PartyVInfo been removed? > I thought these parameters were not required, so I will add them back. > - The ciphertext is completely unnecressary (see above). > Please see the response above. > > > Section 6.1. Direct Key Agreement: > > "Both header parameters, "alg" and "enc", MUST be placed in the JWE > Protected Header." > > ... Is this intentional deviation from JWE? If it is, that should be > called out. > No deviation from JWE; I will update text for better clarity. > > > "The parameter "kem-ct" MUST include the output ('ct') from the > PQ-KEM algorithm, encoded using base64url." > > ... Any reason not to use the "ek" parameter from JOSE-HPKE? > Yes, I missed to publish the change to use "ek"; I will correct it in the next revision. > > (there are also references to "kem-ct" in section 6.2.) > I will remove it. > > > Section 7.1. Single Recipient / One Layer Structure: > > COSE only allows one algorithm per layer, but there are two algorithms > (bulk encryption and direct key agreement) so this design will not work. > > This needs to be done the same way as ECDH-ES is used in COSE: Have bulk > encryption in layer0, and Direct Key Agreement in layer1. > We are following the same approach specified for ECDH-ES in COSE (Section 8.5.4 of RFC9052 and COSE HPKE) > > > Section 7.2. Multiple Recipients / Two Layer Structure: > > "and encrypted CEK in the encCEK structure" > > ... RFC9052 defines COSE_recipient to have "ciphertext" field for the > layer ciphertext (which is the key wrap output in this case). > Yes but I see COSE HPKE uses encCEK structure. > > > Then another way to do the same thing is to stick bulk encryption in > layer0, Key Wrap in layer1 and Direct Key Agreement in layer2. Using > Key Agreement with Key Wrap just saves some space. > > > Section 8. JOSE Ciphersuite Registration: > > What KDF hash do those algorithms use? > > The most aligned choice would be KMAC256 (as in NIST SP800-56Cr2), > using 131 (the spec has off-by-one goof) byte all-zeroes salt and > H_outputBits=L. > Yes, KMAC256 sounds good. > > > Section 9. COSE Ciphersuite Registration: > > Same as above, what KDF hash do those algorithms use? And the most > aligned choice is the same. > In case of COSE, HMAC with SHA-256 can be used as KDF. -Tiru > > > > > -Ilari > > _______________________________________________ > COSE mailing list -- cose@ietf.org > To unsubscribe send an email to cose-leave@ietf.org >
- [jose] Fwd: New Version Notification for draft-re… tirumal reddy
- [jose] Re: [COSE] Fwd: New Version Notification f… Ilari Liusvaara
- [jose] Re: [COSE] Re: Fwd: New Version Notificati… tirumal reddy
- [jose] Re: [COSE] Re: Fwd: New Version Notificati… Ilari Liusvaara
- [jose] Re: [COSE] Re: Fwd: New Version Notificati… tirumal reddy