[CFRG] Re: ML-KEM for HPKE: just use seeds
Rohan Mahy <rohan.mahy@gmail.com> Sat, 12 October 2024 09:56 UTC
Return-Path: <rohan.mahy@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BFF61C151995 for <cfrg@ietfa.amsl.com>; Sat, 12 Oct 2024 02:56:37 -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, 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] 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 Mq2NvnzcbvbA for <cfrg@ietfa.amsl.com>; Sat, 12 Oct 2024 02:56:37 -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 ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45401C151549 for <cfrg@irtf.org>; Sat, 12 Oct 2024 02:56:37 -0700 (PDT)
Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5c935d99dc5so2852916a12.1 for <cfrg@irtf.org>; Sat, 12 Oct 2024 02:56:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728726995; x=1729331795; darn=irtf.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=FRRpglyaB92IdS0jg+Ndtye5+et0G/0UIFvhgYoSKpE=; b=CqZfS9dqKbIb3+5oC2cLHl3kRUgUV7ygp7JK2FMxO6UVG+l9l9+3XhO3Fvv7HdW/Qc 88XJupTOruMNd388g19qCMUtqiPRDbVenTpnmNM2/f7N2NEDRThm4KPXcuTSi5JRCAyH jxcEptmFgWNujN86xlDz2NaaJoW5EmRR0mH9wyyBZu061FBHPqaY6Ced+Q8LyeHKtl43 2xORebPl6SBwiv8wlXJPwOAcrlyUYTM/pDBmOmyE4ysbdwsMRpsSNRg/hkbh1SFa95H1 K8S4lFU7ZYJ+MbpUUkgEEdLg1QzTAGVgmQi1eACcTs7kDswFyZry0L7m81PPnbbXsTIz vyAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728726995; x=1729331795; 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=FRRpglyaB92IdS0jg+Ndtye5+et0G/0UIFvhgYoSKpE=; b=JdQ60ABbxvhKQIEKSFqQZPRY4DYP2F/sFX8/DFEpVhHqDd/iCl0w2im2D6e6wC2voG ndbl4XsyBoR2tYNQVxM2RcEbgJdTFKSNbDUmJenM82HMDt3YLab13xhwv7YXa9QY4di5 UWs5C30NVDIQ0/dJ935NOrkvJI0XBV4EYiDvjSmSeryDqy6J5P1i8tCMGgW29C+NQ9MY wgers0uPB7mA2jeqrD1asOV+zthPsi7ex/eftYaY7hDhCxoZ9t8mjPOtMLmEDaxvMXRW ULisdNxnV9rVO3MSVos6vEp0r71I2fqIVoKuXHbTEH8HBJ6nE6NnJdkSVpVrzps3Pc2q 8tgQ==
X-Gm-Message-State: AOJu0Yysuzw+I1Xdu7xsbNA3MtF7GUzL1JMDQqXKjrq15DfWmB3hmYxn KKxLOmg+F7wguYXE6iQAf8upyczhZp7Mmv3+PFIBTq6NgYb4SC7palTRBuKpibe7fxD8UFQnSxJ xI9FbYUYrQdO3ZJaWmktkFddlofY=
X-Google-Smtp-Source: AGHT+IGdMwv12TEzT8eL4NvYGnrO+DTJQTRda2p5TRMojcK+37VKiZm/AXbAvyoJ/k0F7BJBNT7a2ANwfWNaefAH3Q4=
X-Received: by 2002:a05:6402:5249:b0:5c8:79fa:2e35 with SMTP id 4fb4d7f45d1cf-5c948d6eb0emr3929572a12.32.1728726995181; Sat, 12 Oct 2024 02:56:35 -0700 (PDT)
MIME-Version: 1.0
References: <CAFR824xpwetkdZZL29TZoa2pEE6Ke537eNuritKbBJZ0wiCKYQ@mail.gmail.com> <CAKoiRuaocTHe0YJr=cdF57v0mcFOYi8K39jr_s0tqOX9OG4xXA@mail.gmail.com>
In-Reply-To: <CAKoiRuaocTHe0YJr=cdF57v0mcFOYi8K39jr_s0tqOX9OG4xXA@mail.gmail.com>
From: Rohan Mahy <rohan.mahy@gmail.com>
Date: Sat, 12 Oct 2024 02:56:25 -0700
Message-ID: <CAKoiRuZRH4QkMi8DXc-PrBZYsVcbXiqgzR+ZX6q9GTZB9ymBJA@mail.gmail.com>
To: Deirdre Connolly <durumcrustulum@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000007628410624449e53"
Message-ID-Hash: NCULF4QMJNPS2V3X5WD5BYJJUUCY2TGV
X-Message-ID-Hash: NCULF4QMJNPS2V3X5WD5BYJJUUCY2TGV
X-MailFrom: rohan.mahy@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cfrg.irtf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: CFRG <cfrg@irtf.org>
X-Mailman-Version: 3.3.9rc5
Precedence: list
Subject: [CFRG] Re: ML-KEM for HPKE: just use seeds
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/E47D2XR1Dr7NCFOOgyJObzzCVBM>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Owner: <mailto:cfrg-owner@irtf.org>
List-Post: <mailto:cfrg@irtf.org>
List-Subscribe: <mailto:cfrg-join@irtf.org>
List-Unsubscribe: <mailto:cfrg-leave@irtf.org>
Apologies for my hasty response on too little sleep. After skimming FIPS203 again, it looks like the hash function is fully specified, so just deleting the paragraph about KDFs and AEAD seems best to me. And NSecret is indeed always 32. It might be worth a note so readers less familiar with ML-KEM don't think it is a typo. Thanks, -rohan On Sat, Oct 12, 2024, 02:23 Rohan Mahy <rohan.mahy@gmail.com> wrote: > Hi Dierdre, > Thanks very much for getting this out. My main technical concern is this > paragraph, which does not provide a clear mapping of ML-KEM size to its > KDF, and muddles cipher suite definition with KEM definition: > > We use HKDF-SHA256 and HKDF-SHA512 as the HPKE KDFs and AES-128-GCM and > AES-256-GCM as the AEADs for ML-KEM-512, ML-KEM-768, and ML-KEM-1024. > > Please define the specific KDF to use clearly in text or in a table. (I > think we can leave AEAD out of this.) I heard much talk of using ML-KEM-768 > for the 128-bit and 192-bit security levels. Should we have 3 or 4 > definitions for HPKE KEM? > ML-KEM-512 (SHA256) for ?? > ML-KEM-768 (SHA256) for 128? > ML-KEM-768 (SHA384) for 192 > ML-KEM-1024 (SHA512) for 256 > > Regarding the IANA registration section, it requests 0x0512, 0x0768, and > 0x1024. Please don't. 0x0040, 0x0041, etc would be much better. Is NSecret > really only 32 for all three KEMs? I would have guessed these increased to > 48 and 64. > > I'll propose an editorial PR soon, but these are my only substantive > issues. > Thanks, > -rohan > > >
- [CFRG] ML-KEM for HPKE: just use seeds Deirdre Connolly
- [CFRG] Re: ML-KEM for HPKE: just use seeds Rohan Mahy
- [CFRG] Re: ML-KEM for HPKE: just use seeds Rohan Mahy
- [CFRG] Re: ML-KEM for HPKE: just use seeds Deirdre Connolly
- [CFRG] Re: ML-KEM for HPKE: just use seeds John Mattsson
- [CFRG] Re: ML-KEM for HPKE: just use seeds Markku-Juhani O. Saarinen
- [CFRG] Re: ML-KEM for HPKE: just use seeds Deirdre Connolly
- [CFRG] Re: ML-KEM for HPKE: just use seeds John Mattsson
- [CFRG] Re: ML-KEM for HPKE: just use seeds Nick Sullivan
- [CFRG] Re: ML-KEM for HPKE: just use seeds Deirdre Connolly
- [CFRG] Re: ML-KEM for HPKE: just use seeds Deirdre Connolly
- [CFRG] Re: ML-KEM for HPKE: just use seeds Deirdre Connolly