[COSE] Re: Call for adoption of draft-reddy-cose-jose-pqc-hybrid-hpke
Michael Prorock <mprorock@mesur.io> Sat, 09 November 2024 10:56 UTC
Return-Path: <michael.prorock@mesur.io>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4D2B7C1D52E9 for <cose@ietfa.amsl.com>; Sat, 9 Nov 2024 02:56:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, 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=mesur-io.20230601.gappssmtp.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 pmi4KSPW3Viw for <cose@ietfa.amsl.com>; Sat, 9 Nov 2024 02:56:06 -0800 (PST)
Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 206A8C180B7F for <cose@ietf.org>; Sat, 9 Nov 2024 02:56:05 -0800 (PST)
Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a99f646ff1bso439387966b.2 for <cose@ietf.org>; Sat, 09 Nov 2024 02:56:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mesur-io.20230601.gappssmtp.com; s=20230601; t=1731149764; x=1731754564; 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=GAzlh5j0f6igxMicUMbB6rh4GpVAkAiFwe7NaA4JZrc=; b=A/IE1V70e0rFR0CpBCyR3C2TOstLtcZexhn/I83GZMGiDhy1JP6YBCB9Ww5Kt8J3lj 7jgqAddyRWlMtLxUw173CoatlnSRk/L9/cksF2OLx8hizKxavcFLhg+j/1By2w35y9/l 95Nrit/oNVru2LnVFtFocOvldf8jJzi58/HSSIgqhrLLo7kZXS3j1OX1crSXBU/W7fZx yj1iIrHqe7AG6F9btgd1vSZwJJGcX0gTLPNH8+pRpTLIoqyA9dv/nsyfamqQKW4KzrKp Zn9QXnIaQzxGl41vOh7fzF6zX86cdgNWanZh1OePmwzgISm35nXOD/Zx2kPlrUruBkpD ustw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731149764; x=1731754564; 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=GAzlh5j0f6igxMicUMbB6rh4GpVAkAiFwe7NaA4JZrc=; b=c7INf7kaqP+FuVpjTpOOebuWkX9TvFO4KrHxXYmOFTqmqy55zacP+5LUJce3E+lrbz egAyQOpsUIbjrmFpo/XDlebfrScLq9XwoAhi2IYNwHHy/N0ZaP4A4P2MFqPl/6/2WfMX G1yAaMLgdLEBPem2CKpgnTtUQnDrwHeI4U3qEHDeNtxDpCwaJ5R5wHwGMiDZbEKP2Ysp M8aaRe80JEx1mu79uW0up10r/tyjrCg2lItNjRelQpnaMjCyrh+dSpOHzG/6JP+69Urm TkpHzHpq2rpnWa7R7ZLRSqrSRbC+bk2oiY+Z9h6C2UHLFxcHHjtq+dhsnyYO42kuwNeE qEnA==
X-Forwarded-Encrypted: i=1; AJvYcCV6lyX+mUZaewqPLbdq1qhFD4Ap26WGS0gjztaxEqh59r61zkjSPC8Pro4OUeA9W7gmAbYb@ietf.org
X-Gm-Message-State: AOJu0YyB6A632YLq1mUZt+QvQex+dRFGuc8X9Kq5PHCOJU8htVqooZ4h dLw19wuiRxoCVUCxBf3kyksQXpPoJdUKTcCQSKOKPQm3dSsWCQgafE53h1Ir7cW/+3BMSJFZ4TP bz012504PaBsvWBRGH+zwdLvUdycF3Fwij4PR
X-Google-Smtp-Source: AGHT+IGHXp7LVGPUN70QxuNXE1NEWva3faMVGwWWNYp7rRv9bF/GCQGagoL5CMMhezBeZU1e81m/wuCzgRdE/Z3DkaE=
X-Received: by 2002:a17:906:6a12:b0:a9e:c696:8f78 with SMTP id a640c23a62f3a-a9ef001ea60mr649618566b.51.1731149764123; Sat, 09 Nov 2024 02:56:04 -0800 (PST)
MIME-Version: 1.0
References: <BN6PR08MB349180570BA3D1CA2EB7EDC1B75D2@BN6PR08MB3491.namprd08.prod.outlook.com> <Zy5NLM-mCVJ1F4YF@LK-Perkele-VII2.locald> <CAN8C-_KSHkjTbQx3fa7-W1FQvVtOzvzybyWKgBFWYx_tzPrTDg@mail.gmail.com> <Zy8R_PfKES9KNFgP@LK-Perkele-VII2.locald> <CAN8C-_JEv6=4=iZCaVs0xEx7qxrBFNKU7KYaXa70-q4qq=dy1Q@mail.gmail.com>
In-Reply-To: <CAN8C-_JEv6=4=iZCaVs0xEx7qxrBFNKU7KYaXa70-q4qq=dy1Q@mail.gmail.com>
From: Michael Prorock <mprorock@mesur.io>
Date: Sat, 09 Nov 2024 10:55:52 +0000
Message-ID: <CAGJKSNSBMLR8L2wg_zS-q4-yGoM2NedTj=zT55h3vVpHUWD=kQ@mail.gmail.com>
To: Orie Steele <orie@transmute.industries>
Content-Type: multipart/alternative; boundary="000000000000be7ff7062678b67d"
Message-ID-Hash: FRS7GKQE6S2LHFDENANZAOZAP24DIWTX
X-Message-ID-Hash: FRS7GKQE6S2LHFDENANZAOZAP24DIWTX
X-MailFrom: michael.prorock@mesur.io
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Ilari Liusvaara <ilariliusvaara@welho.com>, cose <cose@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [COSE] Re: Call for adoption of draft-reddy-cose-jose-pqc-hybrid-hpke
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/slmcCELcIkYDWfKV9eueF_ivzxs>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Owner: <mailto:cose-owner@ietf.org>
List-Post: <mailto:cose@ietf.org>
List-Subscribe: <mailto:cose-join@ietf.org>
List-Unsubscribe: <mailto:cose-leave@ietf.org>
+1 Orie. I think that works well
On Sat, Nov 9, 2024, 08:48 Orie Steele <orie@transmute.industries> wrote:
> AKP seems fine to me, for example:
>
> const jwk = {
> kty: "AKP",
> kid: "01",
> alg: "X-Wing",
> pub: "4iNrNajCSz...tmrrIzQSQQO9lNA", // both public keys
> priv: "f5wrpOiP...rPpm7yY", // single seed
> key_ops: ["deriveBits"],
> };
>
> See the key generation here:
> https://datatracker.ietf.org/doc/html/draft-connolly-cfrg-xwing-kem-06#appendix-B.1
>
> Especially this part:
>
> def GenerateKeyPairDerand(seed):
> assert len(seed) == 32
> skM, skX, pkM, pkX = expandDecapsulationKey(seed)
> return seed, pkM + pkX
>
> OS
>
> On Sat, Nov 9, 2024 at 7:41 AM Ilari Liusvaara <ilariliusvaara@welho.com>
> wrote:
>
>> On Fri, Nov 08, 2024 at 09:30:39PM +0000, Orie Steele wrote:
>> > You can use the AKP key type registered in ML-DSA draft, and just define
>> > the pub and priv parameters as concatenations, or you can use the same
>> seed
>> > value for private key, and the public keys as concatenated.
>>
>> AKP is not suitable here, because AKP assumes that the the key only
>> makes sense in one algorithm, and this draft already violates the
>> assumption. Furthermore, all KEMs turn out to make sense in multiple
>> algorithms, so AKP is not suitable for any KEM keys.
>>
>> The proper existing key type for KEMs with byte string I/O (e.g.,
>> X-Wing) is OKP, as there is no present key type specific to HPKE.
>>
>> Furthermore, HPKE forces byte string I/O anyway, so I would like that
>> there would not be another legacy format hack (besides the EC/EC2 one).
>>
>>
>> > On Fri, Nov 8, 2024, 5:41 PM Ilari Liusvaara <ilariliusvaara@welho.com>
>> > wrote:
>> >
>> > > On Fri, Nov 08, 2024 at 03:04:22PM +0000, Michael Jones wrote:
>> > > > Per discussions at the IETF 121 COSE working group meeting, this
>> note
>> > > > starts a two-week call for adoption of the PQ/T Hybrid KEM: HPKE
>> with
>> > > > JOSE/COSE specification. Please let us know whether you are in
>> favor
>> > > > of adoption or not by Friday, November 22, 2024.
>> > >
>> > > What KEM is the draft supposed to use?
>> > >
>> > > It references something called "X25519MLKEM768 Hybrid KEM", which is
>> > > not found in HPKE KEM registry, nor seems to be pending addition to
>> it.
>> > >
>> > > Is that supposed to be X-Wing (HPKE KEM id 0x647a)? That is a hybrid
>> of
>> > > X25519 and ML-KEM 768. If so, the algorithm name should presumably
>> > > reference "xwing" instead.
>> > >
>> > > The draft should explicitly specify the HPKE KEM/KDF/AEAD id values to
>> > > use. HPKE absolutely requires any KEM/KDF/AEAD used to be in its
>> > > registeries.
>> > >
>> > >
>> > > Also, the draft should register the keys required, something like:
>> > >
>> > > - COSE Elliptic Curves:
>> > >
>> > > * Name: X-Wing
>> > > * Value: <TBD>
>> > > * Key type: OKP
>> > > * Description: X-Wing
>> > > * Change Controller: IESG
>> > > * Reference: <self>
>> > > * Recommended: <TBD>
>> > >
>> > > - JSON Web Key Elliptic Curve:
>> > >
>> > > * Curve name: XWing
>> > > * Curve description: X-Wing key pairs
>> > > * JOSE Implementation Requirements: <TBD>
>> > > * Change Controller: IESG
>> > > * Reference: <self>
>> > >
>> > > (Yes, the terminology is utterly confusing. Trying to fix it to the
>> > > extent possible is a topic for another RFC.)
>>
>>
>>
>>
>> -Ilari
>>
>> _______________________________________________
>> COSE mailing list -- cose@ietf.org
>> To unsubscribe send an email to cose-leave@ietf.org
>>
>
>
> --
>
>
> ORIE STEELE
> Chief Technology Officer
> www.transmute.industries
>
> <https://transmute.industries>
> _______________________________________________
> COSE mailing list -- cose@ietf.org
> To unsubscribe send an email to cose-leave@ietf.org
>
- [COSE] Call for adoption of draft-reddy-cose-jose… Michael Jones
- [COSE] Re: Call for adoption of draft-reddy-cose-… Ilari Liusvaara
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… Ilari Liusvaara
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Prorock
- [COSE] Re: Call for adoption of draft-reddy-cose-… Ilari Liusvaara
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Call for adoption of draft-reddy-cose-jose… Michael Richardson
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Jones
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Jones
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Prorock
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Sophie Schmieg
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… Sophie Schmieg
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Prorock
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Jones
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Prorock
- [COSE] Re: Call for adoption of draft-reddy-cose-… Orie Steele
- [COSE] Re: Call for adoption of draft-reddy-cose-… tirumal reddy
- [COSE] Re: Call for adoption of draft-reddy-cose-… Michael Jones
- [COSE] Re: Call for adoption of draft-reddy-cose-… Sophie Schmieg
- [COSE] Re: Call for adoption of draft-reddy-cose-… Ilari Liusvaara
- [COSE] Re: Call for adoption of draft-reddy-cose-… Aritra Banerjee (Nokia)