[CFRG] Re: RG Last Call on draft-irtf-cfrg-pairing-friendly-curves-14
Emil Lundberg <emil@yubico.com> Sat, 03 October 2026 07:13 UTC
Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx.ietf.org (Postfix) with ESMTPS id C769350 for <cfrg@irtf.org>; Sat, 03 Oct 2026 07:13:03 +0000 (UTC)
Authentication-Results: mx.ietf.org; dkim=pass header.d=yubico.com header.s=google header.b="hs/wPTvp"; spf=pass (mx.ietf.org: domain of emil@yubico.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=emil@yubico.com; dmarc=pass (policy=reject) header.from=yubico.com; arc=pass ("google.com:s=arc-20260327:i=1")
Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-48afcfc4bf5so143707f8f.1 for <cfrg@irtf.org>; Sat, 03 Oct 2026 00:13:03 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1791011576; cv=none; d=google.com; s=arc-20260327; b=q0eIjXviRuixWodvuw1iX4H6SvTcOA0eDGrd52l6cG63zdgUPerN7fZbLdPX32iBcL +hHHBtRzJAeF0r5PQqtqKuJN31yHzmcH2+dQ3fNOebUiAnYGvHUx0rNlQO0U4NGKwcNC W5IlgiII4Q0n1qm1Q6lQXpzhEaxxMFWbMgomCVvvIuAd5EHoGDu1ZEpaHpRG73+ABqHv VHYJyCOmVtOp/8CyIUAQhYjungQCQG46DD/XUM06ohJmM9fwcwuywJpdt8dyCpISXbpx j7hdk1qHKHYcM2CVjBK93rPcGat6gUhCFto6CDp8kcMvHfMOlTnoXa3Twt9fhwBAzb3q 2Z/Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cpf/4/zk0NQ5NnbQrByg+OU02Kj8P4MJky3zH26HqWQ=; fh=I9lEgVqUbbytRRgi/jCy6ZkITtajY28AfrFmE7Zgu5s=; b=Nlv7DnQA3oBPysQB9S28uIF4KDr89vpt2sQzrSuR/NXd/5c2ZRAEdJAj1b+wE+chpT O2VJSDEMOtTt4d5TLMrLjBvgEiGeOLtHwMmHdr0ADqAbwhK9OZ//Dov9dThaRKz4QiNz esEMgTfM00xyuj/DmWabOOgNr+1DKCA4ARzCSTw1E5DgYaAmAtjxU3ezt8oL4CDDFwOw JArirQ1kJBVrnGNmCjBjuJnP5l67AeVIpymKyd6lSi3aZ4zx1Yj1nqRFu/3uVz0Fcdu3 Mq0fADh7XZ2yGpZLja8Qsh3vj82vWWUhjjqAMXy5BeuouMAR82gQtzw6PZODxLZ8Ltf4 oijA==; darn=irtf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yubico.com; s=google; t=1791011576; x=1791616376; darn=irtf.org; h=content-type:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cpf/4/zk0NQ5NnbQrByg+OU02Kj8P4MJky3zH26HqWQ=; b=hs/wPTvphZan7E1YpLUpB4bR5ekNT1iJMKlO9fcUWAwhhVhqCoLveWySnMvUMP3FKs BMVR1hnrLnXkaAdbO8UMztmUYhcDDNv4DSOdpHLH7Ojrax2rH5IWNHFMlUX2oNdKXFrh l+b7nn0ZGO7sUhvC4mYozNS9+jSGG7RBl1byBHWo7EIRlwR6VeGLiDKQwBWbX5Ojlqvd RhcoS2GsSKgrQ/6bgIZ4mcLFF/rGNLOrgnEPffWtVz7mgbaRK4Fgp5qboYl/3BQq2PP9 9gyhAvM82XvPtJwLznGn5MxRSNDJXzpDSsNOFsSyfY1UmbPGvoiS8DH+r+2qIaxSFaWC oCqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791011576; x=1791616376; h=content-type:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cpf/4/zk0NQ5NnbQrByg+OU02Kj8P4MJky3zH26HqWQ=; b=rBlovoUI9FfBgx5YWKWnC7rmkBzV613EJM6VVdP688Ild1Phx/rtY0aX7lGRcsQb7W iluUmRk7Tbn2D4Xpak4cGcGTyozIDpN+OvA1V3c0x7HKQpkhHl6+Twc6WLx8Rqg3FEko 1aYoGVGIiXugxozWrDnJ2bofeupYJk+J7S6mJzCw6fBKHUg/43Qzo7QHyqrdUTJOlVT1 ar7XJej2cy1OfZfVu2UD9umdUnhBJ98ZjPhdYlPKAc7c1a0nH9TcHMJFI1+YozoItr9S JU0lkF4gyYLpjdNzlFIJ4r7/Hl5sAPC/ziYMlX+/ZEzGLLiy32K1+G2xqz5K/DpgKkd2 b5oQ==
X-Gm-Message-State: AFq9FYKjAmtQVcSS9Q2vD1JQ9vZp0QA5Q6KsmKkabkggmWYk1DXDNuBE a85sFva9qBeOM5eTEuxoTzvyc5bZ3MfyHV7Hl5ootu6QduCSu8IrGOa+OFSj9yBkmwtItReg4uR 9FfcGl0CZYywsknzeU3ecqMv6TuJOAsHfxnPW7llflWLsdKszUZ/KeWA=
X-Gm-Gg: AYBFou1JNZeGOMMEHnXoIEQQ1mv+x/5rm/3//nD5qHbjC+n7GIXVWz1+KzVQyARYRTU b+EP958dtZLq30SRke7zicHv2d8l9ANSh2aHefRSgjxUaoE1LZUs5lTnQ/S5iJI7cwM0YcHlgJT vpoO6MS4ZVzVMdaKZbIf9QE8OM2RVro0uAeIXxLLTJauiynao0g/SUOUlOHJCP1bnm69wXi6bck pJaeV38fxcRNlYe9Jni1QsPf711JUebrloXsX+jkKGQOGZI6rWF3iihm/iMLLodpnb7LfDj4sNC MsVIwuY3Zx40wJYxJklqnMx3+jV06B0nnWpr5F6sDbuBT652OOi4bpKd37HZDQzT3c53pKiSvbJ hfIPG23iti+dazC16oBR84vA=
X-Received: by 2002:a05:6000:2610:b0:48a:eff0:c31d with SMTP id ffacd0b85a97d-48c47ff5744mr2200373f8f.38.1791011576321; Sat, 03 Oct 2026 00:12:56 -0700 (PDT)
MIME-Version: 1.0
References: <CAOjisRxC8dvj-qT7FzfzS-foCUqxMXXdsP95b4TXY-j+M2Df5w@mail.gmail.com> <CANeU+ZARcw8ozzhevtBSP8gZuYZcJF76VkwxGCHFFWUDuR_8Rg@mail.gmail.com> <CANMnvkyT2VLxKaLxrmrKTFD1Funb6HNtJKTDQkoXxaX25bm6Jg@mail.gmail.com> <CANMnvkyiCA1BdR4eiBF-a0Vv-KHiWecG=K8pYiTFpNzwLxcq7A@mail.gmail.com>
In-Reply-To: <CANMnvkyiCA1BdR4eiBF-a0Vv-KHiWecG=K8pYiTFpNzwLxcq7A@mail.gmail.com>
From: Emil Lundberg <emil@yubico.com>
Date: Sat, 03 Oct 2026 09:12:40 +0200
X-Gm-Features: AclHuK-1WbgYcbAV7CpP-ZY4QzqbB0Zps91lciKWdRGLmxbtSraVshqbpbC8Xds
Message-ID: <CANMnvkyzBP7=QiAf5fpcy-3MAW67FrmPkbR9ZPEpg9MPsu13Fg@mail.gmail.com>
To: CFRG <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="000000000000cbb05a065cea604e"
X-Spamd-Bar: -----
Message-ID-Hash: 3DMFBFO3QX2CXOVFOLVEFHYUCPIQBAKL
X-Message-ID-Hash: 3DMFBFO3QX2CXOVFOLVEFHYUCPIQBAKL
X-MailFrom: emil@yubico.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-cfrg.irtf.org-0; header-match-cfrg.irtf.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.10
Precedence: list
Subject: [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairing-friendly-curves-14
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/5xuqDQwnEKinEaDT9i9jTiUF1A8>
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>
(Re-sending this follow-up to my previous message, as I accidentally
replied only to one individual recipient instead of to the mail list)
...and right after sending that, I realized the decomposition in comment
(2) is even easier to compute than I figured. I was thinking the optimal
base 2 decomposition is non-obvious because 6*t includes a factor 3, but I
now realized you can just write it as 6t + 2 = (2^2 + 2^1)t + 2^1 and the
rest follows immediately from the decomposition of t (and has one term less
than the one I gave in Python!).
So if you'd like to make a change to address comment (2), it might suffice
to just add a small hint like the above to section A.1
<https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-optimal-ate-pairings-over-b>.
For example, perhaps change
"Let c = 6 * t + 2 for a parameter t [...]"
to:
"Let c = 6 * t + 2 = (2^2 + 2) * t + 2 for a parameter t [...]"
which should make it obvious enough for the reader to figure out how to
derive the decomposition.
Again, this is non-essential and the document is complete enough without
it. It may be fair to consider this elementary enough to expect readers of
a document at this level to figure this out without such a hint. Either
way, thank you for your consideration.
Emil Lundberg
Staff Engineer | Yubico <http://www.yubico.com/>
Den fre 2 okt. 2026 kl 23:15 skrev Emil Lundberg <emil@yubico.com>:
>
>> I have reviewed -14 and am happy to report that with the clarifications
>> to the pairing computation and test vector representations, I have now
>> successfully reproduced the pairing test vectors of all three curves
>> (BLS12-381, BN462 and BLS48-581) in my from-scratch implementation! Thank
>> you for these clarifications, they make the document much easier to
>> interpret correctly.
>>
>> With that I can confirm that in my experience, draft -14 is clear and
>> fairly straightforwardly implementable (once one tracks down and fixes all
>> of one's implementation bugs...). I agree it is fit to publish in its
>> current state.
>>
>> I do have a few more suggestions for possible improvements, though. These
>> are all non-essential, but they would (in my opinion) further strengthen
>> the draft with some yet improved clarity:
>>
>> 1. I had some difficulty reproducing the BN462 pairing, but finally got
>> it working after I noticed that I had missed the notice in the Appendix A
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-computing-the-optimal-ate-p>
>> introduction that pi(p, Q) also needs to operate on Q in untwisted form.
>> Since the pseudocode uses pi only in Section A.1
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-optimal-ate-pairings-over-b>,
>> but not in A.2
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-optimal-ate-pairings-over-ba>,
>> it may be worth considering moving the paragraph about the Frobenius
>> endomorphism ("The computation of the optimal ate pairing uses the p-power
>> Frobenius endomorphism pi [...], pi(p, Q) = (x^p, y^p).") into section A.1
>> to keep it closer to where it's most relevant (within the scope of this
>> document).
>>
>> 2. I also noted that the pairing for BN curves needs a decomposition of c
>> = 6 * t + 2, which the reader needs to compute themself since one is not
>> stated explicitly - unlike BLS curves which use c = t, whose decomposition
>> is given in section 4. It may be worth considering stating the
>> decomposition of c = 6 * t + 2 too, but it's not strictly necessary since
>> the stated constraints are enough to re-derive one. Here's what I came up
>> with (in Python):
>>
>> t = 2**114 + 2**101 - 2**14 - 1
>> c = [0]*117
>> c[2] = 1
>> c[3] = -1
>> c[15] = -1
>> c[16] = -1
>> c[102] = 1
>> c[103] = 1
>> c[115] = 1
>> c[116] = 1
>> assert sum(ci * (2**i) for i, ci in enumerate(c)) == 6 * t + 2
>>
>> 3. It may be worth adding a reference back to section 2.4
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-barreto-lynn-scott-curves> in
>> sections 4.2.1
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-bls-curves-for-the-128-bit-> and
>> 4.3
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-for-256-bit-security> after
>> the definition of t, like section 4.2.2
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-bn-curves-for-the-128-bit-s>
>> already has after its definition of t. I initially made the mistake of
>> assuming the equations for p and r were the same for BLS48 as for BLS12,
>> and it took a while to notice my mistake. A handy link back to section 2.4
>> would have prevented this mistake.
>>
>> 4. I was a bit surprised to see Table 1
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-serialization-and-validatio>
>> and the text around it going into such detail about the origins of the
>> serializations. My apologies if my earlier review comments came across as
>> overly concerned with these details, if that's what motivated this. I think
>> that Table 1 and its preceding paragraph ("Not all of what follows
>> originates with this document. [...]") are not necessary and could be
>> deleted; I think the first paragraph in section 5
>> <https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html#name-serialization-and-validatio> is
>> enough of a summary.
>>
>> Like I said these issues are not essential, so you're welcome to ignore
>> these comments if you prefer to keep -14 as the final draft (or indeed if
>> you simply disagree with them). Thank you very much for your work on this,
>> and for your patience with my and others' review comments.
>>
>> Emil Lundberg
>>
>> Staff Engineer | Yubico <http://www.yubico.com/>
>>
>>
>>
>>
>> Den fre 2 okt. 2026 kl 00:54 skrev StJohns, Michael <
>> msj@nthpermutation.com>:
>>
>>> Two small items - can be resolved in the editing pass,
>>>
>>> 1) missing a url reference for NIST sp800-57 part 1 - also NIST isn’t a
>>> great reference tag here.
>>>
>>> 2) capitalization of “optimal ate pairing” - AFAICT this is a name for a
>>> particular pairing model and should be capitalized as such throughout -
>>> Optimal Ate Pairing or abbreviated throughout. Or perhaps optimal Ate
>>> pairing? Since [ver09] is behind a paywall, I can’t confirm this.
>>>
>>> Otherwise looks good from a general readability perspective
>>>
>>> Mike
>>>
>>> On Fri, Sep 25, 2026 at 10:31 Nick Sullivan <nicholas.sullivan@gmail.com>
>>> wrote:
>>>
>>>> Dear CFRG,
>>>>
>>>> This message starts a three-week RG Last Call on
>>>> draft-irtf-cfrg-pairing-friendly-curves-14. The last call ends on Friday
>>>> October 16, 2026:
>>>>
>>>> Pairing-Friendly Curves
>>>> draft-irtf-cfrg-pairing-friendly-curves-14
>>>>
>>>> https://www.ietf.org/archive/id/draft-irtf-cfrg-pairing-friendly-curves-14.html
>>>>
>>>> The document is intended as an Informational RFC. Please reply on-list
>>>> with your position: ready to publish as-is, ready with specific changes, or
>>>> not ready, together with the technical reasons. This feedback will help the
>>>> chairs judge whether the document is ready for IRSG review and publication.
>>>>
>>>> Some history: The document had an Expert Review by Chloe Martindale in
>>>> 2020. The authors resolved her comments in -05, and a first RG Last Call
>>>> ran on that revision. The curve parameters have not changed since then.
>>>> What has changed is implementer-facing: Section 5 now specifies
>>>> serialization normatively, Section 4 records the curve set and security
>>>> levels after the discussion on this list this spring, Appendix G records
>>>> the scope of the security estimate review, and the test vectors were
>>>> cross-checked against four independent implementations. Reviews from Frank
>>>> Denis, Emil Lundberg, Thomas Bellebaum and Michele Orrù shaped the recent
>>>> revisions, and every issue in the repository is closed.
>>>>
>>>> This last call is about whether the text is technically correct and
>>>> complete, so please ground any objection in a specific problem with the
>>>> document. Detailed comments are best filed as issues on the repository (
>>>> https://github.com/cfrg/draft-irtf-cfrg-pairing-friendly-curves)
>>>> Positions belong here on the list.
>>>>
>>>> The chairs asked the Crypto Review Panel for a review of -14 in
>>>> September and no panel member was available. Given the 2020 Expert Review
>>>> and the unchanged parameters, we decided not to hold the document for a
>>>> second panel review. Reviews from anyone with the relevant background are
>>>> welcome during this last call.
>>>>
>>>> Thank you,
>>>> Nick, for the CFRG chairs
>>>> _______________________________________________
>>>> CFRG mailing list -- cfrg@irtf.org
>>>> To unsubscribe send an email to cfrg-leave@irtf.org
>>>>
>>> _______________________________________________
>>> CFRG mailing list -- cfrg@irtf.org
>>> To unsubscribe send an email to cfrg-leave@irtf.org
>>>
>>
- [CFRG] RG Last Call on draft-irtf-cfrg-pairing-fr… Nick Sullivan
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Salz, Rich
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Brent Zundel
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Frank Denis
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… StJohns, Michael
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Emil Lundberg
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Yumi Sakemi
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Emil Lundberg
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Michael Scott
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Nick Sullivan
- [CFRG] Re: RG Last Call on draft-irtf-cfrg-pairin… Yumi Sakemi