[CFRG] Re: RG Last Call on draft-irtf-cfrg-hybrid-kems-12 and draft-irtf-cfrg-concrete-hybrid-kems-04

"D. J. Bernstein" <djb@cr.yp.to> Tue, 14 July 2026 12:22 UTC

Return-Path: <djb-dsn2-1406711340.7506@cr.yp.to>
X-Original-To: cfrg@mail2.ietf.org
Delivered-To: cfrg@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id A21B911678157 for <cfrg@mail2.ietf.org>; Tue, 14 Jul 2026 05:22:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784031726; bh=UrcEeEIXrO0nLV01EVASVDef3LnxLvSrGsfXni2JpGU=; h=Date:From:To:Subject:In-Reply-To; b=suKXCgGNifBA/l7B2oS2ZZkuVGwna0pSNikZ3J6+08iwKlzzJ6JHKExO3gGwQoOxA t0z/5+hTUjqvo0menpj1noyKraMdYxFJ+7eswbqFrdvx3t5UHYImfptgrcBBgknsmG 9VxkB4X70dUR+bT3X3uGaqLSWXnmwYarQKQfDBY8=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level:
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PndR1vVcDEDc for <cfrg@mail2.ietf.org>; Tue, 14 Jul 2026 05:22:06 -0700 (PDT)
Received: from salsa.cs.uic.edu (salsa.cs.uic.edu [131.193.32.108]) by mail2.ietf.org (Postfix) with SMTP id 05BD111678152 for <cfrg@irtf.org>; Tue, 14 Jul 2026 05:22:05 -0700 (PDT)
Received: (qmail 2443644 invoked by uid 1010); 14 Jul 2026 12:22:05 -0000
Received: from unknown (unknown) by unknown with QMTP; 14 Jul 2026 12:22:05 -0000
Received: (qmail 783611 invoked by uid 1000); 14 Jul 2026 12:21:53 -0000
Date: Tue, 14 Jul 2026 12:21:53 -0000
Message-ID: <20260714122153.783609.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <1f405363-1185-46b9-9d5f-12b7b1d54e8d@tu-dresden.de>
Message-ID-Hash: 7GKUEZKHPJ5FXRTTHWG6NMCCOFYZGGBV
X-Message-ID-Hash: 7GKUEZKHPJ5FXRTTHWG6NMCCOFYZGGBV
X-MailFrom: djb-dsn2-1406711340.7506@cr.yp.to
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cfrg.irtf.org-0; header-match-cfrg.irtf.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [CFRG] Re: RG Last Call on draft-irtf-cfrg-hybrid-kems-12 and draft-irtf-cfrg-concrete-hybrid-kems-04
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/wlDLsPvvRE1BUmRDHO4EKoyF5GA>
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>

Muhammad Usama Sardar writes:
> When you say "models," can I think of it as follows: say we have a /new/
> algorithm A. You predict failures (somehow; I don't know how you will do
> that because it is /new/) and then you keep testing it over time, and
> improving those models. Is it roughly correct? If not, could you please
> clarify that in simple words without using fancy cryptographic terms?

https://arxiv.org/abs/2107.04940 studied hundreds of CVEs in crypto
libraries. There was roughly 1 new CVE per 1000 lines of new code. About
1 out of 8 "cryptographic" CVEs was severe.

So: If you see a new algorithm, estimate how many lines of code it'll
add to crypto libraries, divide by 1000 to estimate the number of CVEs,
and divide by 8 to estimate the number of severe CVEs.

Refined models look at aspects of code beyond code volume. For example,
defense-in-depth mechanisms such as ECC+PQ obviously need a different
analysis. Also, there's an extensive literature on how various test
mechanisms interact with different types of code. Furthermore, it's
often possible to redesign cryptosystems in a way that stops various
common mistakes from causing problems.

> For a cryptographic proof in CryptoVerif, probabilities are used for the
> primitives. I am trying to understand if this failure prediction has got
> anything to do with that.

Those are referring to another source of security failures, namely the
success probability of attack algorithms against specs---e.g., a key
search might luckily find the secret key.

---D. J. Bernstein


===== NOTICES =====

IETF BCP 78, "Rights Contributors Provide to the IETF Trust", Section 5
(normative), "Rights in Contributions", provides a modification right
"unless explicitly disallowed in the notices contained in a Contribution
(in the form specified by the Legend Instructions)".

The official language from IETF's "Legend Instructions" for the
situation that "the Contributor does not wish to allow modifications nor
to allow publication as an RFC" is as follows: "This document may not be
modified, and derivative works of it may not be created, and it may not
be published except as an Internet-Draft."
<https://trustee.ietf.org/wp-content/uploads/Corrected-TLP-5.0-legal-provsions.pdf>

The same language is used in, e.g., RFC 5831. The same language hereby
applies to this document. This is not disclaiming or limiting the
applicability of IETF policies; it is strictly following IETF policies.

IESG claims that the "explicitly disallowed" provision in BCP 78 is
limited to the examples in Section 3 in BCP 78. That is incorrect. BCP
78 states that Section 5, "Rights in Contributions", is normative, while
Section 3, "Exposition of Why These Procedures Are the Way They Are", is
informative. The opt-out provision in the normative text is clear, and
cannot be limited by an informative section. BCP 78 does not give IESG
any authority to issue changes or purported clarifications of the rules.

Rationale for exercising the BCP 78 opt-out provision: I'm fine with
redistribution of copies of this document. The issue is instead with
modification, such as (1) IESG's May 2025 posting of an IESG-mangled
version of an appeal that I had filed and (2) IETF management selling
IETF mailing-list text to AI companies. This goes far beyond what
copyright law allows as fair use (such as giving quotes for purposes of
commentary). When I complained about the mangled document, the IETF
Executive Director responded not by apologizing but instead by asserting
that IETF management had the power to do whatever it wanted.