[jose] Re: [COSE] Re: Fwd: New Version Notification for draft-reddy-cose-jose-pqc-kem-02.txt
tirumal reddy <kondtir@gmail.com> Fri, 12 July 2024 14:04 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 9CF46C151996; Fri, 12 Jul 2024 07:04:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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] 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 WOqBzSkkUYEJ; Fri, 12 Jul 2024 07:04:57 -0700 (PDT)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 F132EC1516E1; Fri, 12 Jul 2024 07:04:56 -0700 (PDT)
Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52ebad74e76so286855e87.1; Fri, 12 Jul 2024 07:04:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720793095; x=1721397895; 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=SQRkrmdun8h9yw4K6piyY4ImIi532GA2O2euP41OUG8=; b=E1si8J/GuVQIxBfIY1+M5BCVcMOww8V7X4dBYI20N0LQ5fmspv68MWK6lxPngpwVcu RLpkGC0BYdeO5npQfNdKkzBY8HVtaZwYgyXHeaKi8/NllDfI+V61C0QI9NHxnTR7TuIa +J3R40yL1MNvtM391alk3l2sRDldQG5GKeVoVB/NApjMt1g/AMg0ZFn6lVKPpAseelS6 X8thJbIdVMWV7uoqTm2yvrG1DAELblZHRpHnZwTuttD76LaLxcFrlecqP5clYpIwlmgY Lk9ceQvj8zA6P87pAVBZOFBnhjT3PAThSqD2QAiFkkE5WzuQILcL1cMYVvl1NjSXD1TC RkVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720793095; x=1721397895; 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=SQRkrmdun8h9yw4K6piyY4ImIi532GA2O2euP41OUG8=; b=svRKEHhaApCJvPf6PUyaWuD2xtQhluR22zjMmCd13ZxIm8CGKHEYZGsausAY5Vf3NR XQOhv7qh2mBJJsrouF76XWF7gdDju0tVJDTCt93CLyXq075tuVp5fh0oA7HegGRB0n2v Y93v/LAAlfIk/Xdz8NHylKLEU1iKxtgvNAQ0Ay62y2sClbF8GnH0hVtKH8dSA76gYLXy 3LVmGGlDLtAfOBJIRADecd9W3Ykftl6eVOss5I0gS5uasCS7U0vBvqnAPYAuvQ4IjrqR dn92bJ2chxuA9IK425O/F/hIwwjJOkEqyerymr/3MXYTxonCTeUk1U/fr73at/Bj9rg2 0fLw==
X-Forwarded-Encrypted: i=1; AJvYcCWljVhDaWFX+EnSIjifXzhkGf/+0rk9n/d1+u3s+dRKFauCbYX62CuqSDyshIM3PPWIZi5kpU6MSENl/k67
X-Gm-Message-State: AOJu0Yz0aJSG8BWBfH7Vc41oTifn8PjaByPQRO65ppl5pMV+4av4XdLh eYBbrXW/EB+4BTiqmalKwqZ4mckr1FDWoE56P9QBm3R3UpGf+EMCMFv3Ro61XfSPJXTzMTNiSef ScVLTBCu6UYojBB/lQte+J9e4VXo8zw==
X-Google-Smtp-Source: AGHT+IFMNxPGqZpNFc41oixP37Xz3f8zKcLJMSDYaZ7+BlmFq7WUzCB1WnAi1/oKcoVjA7Qxw1pwebUB4e9i9kAmLNA=
X-Received: by 2002:a05:6512:4887:b0:52e:a008:8f4c with SMTP id 2adb3069b0e04-52ec3faeb2amr2683808e87.6.1720793094893; Fri, 12 Jul 2024 07:04:54 -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> <CAFpG3gcXy7AnDqAfyeP11g8VzQqm=B3_zPrnzdk=4_M7+qB5eQ@mail.gmail.com> <Zo_hj4rSwL3Yb0_h@LK-Perkele-VII2.locald>
In-Reply-To: <Zo_hj4rSwL3Yb0_h@LK-Perkele-VII2.locald>
From: tirumal reddy <kondtir@gmail.com>
Date: Fri, 12 Jul 2024 19:34:18 +0530
Message-ID: <CAFpG3gf-uV=OidDftP99YFYfAQP6ZNkY4xiU+GVTppv6qyvfHA@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Content-Type: multipart/alternative; boundary="000000000000273b69061d0d5d8d"
Message-ID-Hash: XSG6G5PKDRXYTTYTZX6QEFQB4Y7VI346
X-Message-ID-Hash: XSG6G5PKDRXYTTYTZX6QEFQB4Y7VI346
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/aTkBGn0S1Lm1Nfd6tz4AYyt0pbo>
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>
On Thu, 11 Jul 2024 at 19:14, Ilari Liusvaara <ilariliusvaara@welho.com> wrote: > On Thu, Jul 11, 2024 at 06:15:28PM +0530, tirumal reddy wrote: > > Hi Illari, > > > > On Tue, 9 Jul 2024 at 21:05, Ilari Liusvaara <ilariliusvaara@welho.com> > > wrote: > > > > > > "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. > > Those KEM properties are red herring, because neither COSE nor JOSE can > use such properties. The reason is that the attacks are just too > powerful to defend against. > Please elaborate on why the attack cannot be mitigated. > > MAL-BIND-* stuff is worse than LEAK-BIND-* stuff, and that already > allows compromising any private key, which already destroys both COSE > and JOSE. > > > > > 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) > > Using ECDH-ES in COSE requires two layers: One layer to generate a CEK > and another to use CEK for bulk encryption. > COSE HPKE has nothing to do with ECDH-ES. It is totally different mode, > which is actually critical in making the thing work. > Got it, we will update the draft. > > > > > 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. > > In the end, both end up doing the same thing. > Yes, updated draft to use "ciphertext" instead of "encCEK" > > > > > 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. > > The C in COSE ultimately stands for "constrained", so it is even more > important to align the KDF than in JOSE. > > Using SHA256 as KDF would require implmenting both SHA-2 and SHA-3 > (ML-KEM requires SHA-3). Using KMAC256 as KDF would only require > implementing SHA-3. > For COSE, KMAC256 sounds good to me. Cheers, -Tiru > > > > > > -Ilari > > _______________________________________________ > jose mailing list -- jose@ietf.org > To unsubscribe send an email to jose-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