[Plants] Re: Higher forgery resistance almost for free?
Michael Richardson <mcr+ietf@sandelman.ca> Sat, 28 March 2026 18:55 UTC
Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: plants@mail2.ietf.org
Delivered-To: plants@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 353D0D2EFDC5 for <plants@mail2.ietf.org>; Sat, 28 Mar 2026 11:55:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1774724107; bh=Oaz0XBhQCKnenf3DFTH7NwdozS5S4nFdEBgB/vxe+2o=; h=From:To:Subject:In-Reply-To:References:Date; b=PNExnc0hwR9+UAmc5wADKLWfXY8V5DU++zXTMwQfmakzsvMrXs2OswwgsQsy+KBaK /EW14i3q0fzQRrqRQjnaxQf1cokm1WGvXhIHX7lufu0bga1PXAzA0EqYwzG721oXBB xzasL/nrLr06hQQSSjE0DvhA51shUD6Pcofp6ZQo=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 nBHIop5AZq1E for <plants@mail2.ietf.org>; Sat, 28 Mar 2026 11:55:06 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 59148D2EFD33 for <plants@ietf.org>; Sat, 28 Mar 2026 11:55:05 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 27A7918011; Sat, 28 Mar 2026 14:54:59 -0400 (EDT)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavis, port 10024) with LMTP id WEm0YA4cvRzo; Sat, 28 Mar 2026 14:54:55 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandelman.ca; s=mail; t=1774724095; bh=aKYuSLmHoUNHLJvOxAu5Fqj1yNKU0ZD2wx7I1qB8wYk=; h=From:To:Subject:In-Reply-To:References:Date:From; b=if2eROWyfHJ5KHKgKsEoevoC5envcQcD/uTZABg5coikUzuHbufiihRYI950hn9To 065DsuH6gYWWJ8jCrVgKTFQjIl/HjWYo+zImQzJ1nczPBbp60zRIpAeFxRaFeOQrqt Ulmsdvqc0oBdrykpsCe9hX5PqRo3RzaVld6uT0uRjZtLe6H+2DZ2oE64D7umo+c2I3 HRubZyR6cAg5UNE+guzsUmHDSFyrMIEt1UP4FoqPARFNyuwZd8PR0o2r+E6u7d8a0/ Cbkda16FoZJQObFPa1z9TO6XEfYnlncMqXeIf2/eUs1jCq0tJQIgHO44Zp6kYSAjdd KUJxO1pwWqyNQ==
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 5F21E1800F; Sat, 28 Mar 2026 14:54:55 -0400 (EDT)
Received: from obiwan.sandelman.ca (obiwan.sandelman.ca [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id 58A4D1C8; Sat, 28 Mar 2026 14:54:55 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Bas Westerbaan <bas=40cloudflare.com@dmarc.ietf.org>, "plants@ietf.org" <plants@ietf.org>
In-Reply-To: <CAMjbhoV1d6Ayfei=GaG8NnFTcWUq8sZ-u5oCM8xp2wXAQRQdbw@mail.gmail.com>
References: <CAMjbhoV1d6Ayfei=GaG8NnFTcWUq8sZ-u5oCM8xp2wXAQRQdbw@mail.gmail.com>
X-Mailer: MH-E 8.6+git; nmh 1.8+dev; Emacs 30.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0;<'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Sat, 28 Mar 2026 14:54:55 -0400
Message-ID: <29365.1774724095@obiwan.sandelman.ca>
Message-ID-Hash: 2E65JMIPOKED3YBSMI5CBG2UJCRXWXVT
X-Message-ID-Hash: 2E65JMIPOKED3YBSMI5CBG2UJCRXWXVT
X-MailFrom: mcr+ietf@sandelman.ca
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; 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: [Plants] Re: Higher forgery resistance almost for free?
List-Id: "PKI, Logs, And Tree Signatures" <plants.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/plants/qFec7weWdHDglWd_F9U_Wy04aJk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/plants>
List-Help: <mailto:plants-request@ietf.org?subject=help>
List-Owner: <mailto:plants-owner@ietf.org>
List-Post: <mailto:plants@ietf.org>
List-Subscribe: <mailto:plants-join@ietf.org>
List-Unsubscribe: <mailto:plants-leave@ietf.org>
Bas Westerbaan <bas=40cloudflare.com@dmarc.ietf.org> wrote:
> In the current draft, the leafs (TBSCertificateLogEntry) are mostly
> predictable by an attacker. Thus with 128-bit work, an attacker can find a
> collision: a harmless TBSCertificateLogEntry which it'll ask the CA to
> issue which has the same hash as a nefarious TBSCertificateLogEntry. [1]
Doesn't this require that the attacker be able to directly submit
the entire TBSCertificateLogEntry to the CA? While most of the fields are
controlled or constant, at least the low-bits of Validity ought to be up to
the CA, as well as the choice of extensions, and I think, the order of them.
> The standard way to solve this is to make the leaf unpredictable to the
> attacker, by including a CA-picked random value (randomizer) in each leaf.
> [2] That'll boost the forgery resistance above 192 bits and well along to
> 256-bits [3].
> The downside is that we need to add that 32-byte randomizer in each
> certificate.
> Worth it?
> I would say so.
I buy your argument even if I'm wrong about above.
> [1] There are some minor hurdles: it'll need to guess the serial number
> correctly. And it'll need some immaterial field to vary to create attempts
> for the colission. Oh, and of course 128-bit work, but we're suspending
> disbelief for a moment.
I don't see a SerialNumber in the TBSCertificateLogEntry :-)
{Of course, I read 2^128 work, but maybe that's now implied...}
> ( https://eprint.iacr.org/2022/1061.pdf ). The attack requires room in the
> message for the logarithmically many collision values after the address.
> It'll depend on the algorithm whether that's feasable for the
> subjectPublicKeyInfo, and we can remove that room by moving
> subjectPublicKeyHash earlier in TBSCertificateLogEntry. The rigorous
> solution is not to use SHA-256, but a hash that is DM-SPR, such as
> SHAKE-256. But is that worth it? With a trillion certificates the attack is
> still in the order of 217-bit work.
My experience (as an engineer^Wphysicist-software-designer) is that, to date, most
preimage attacks are longer than the original. AFAIK, DER encoding for enclosing SEQUENCE
would include the length of the object in bytes. I think that means any
preimage has to be the same size as the original.
Or is my disbelief supposed to also accomodate same-sized preimage attacks :-)
--
Michael Richardson <mcr+IETF@sandelman.ca> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
- [Plants] Higher forgery resistance almost for fre… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Filippo Valsorda
- [Plants] Re: Higher forgery resistance almost for… Scott Fluhrer (sfluhrer)
- [Plants] Re: Higher forgery resistance almost for… Filippo Valsorda
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… cwwynn@uwe.nsa.gov
- [Plants] Re: Higher forgery resistance almost for… David Benjamin
- [Plants] Re: Higher forgery resistance almost for… David Benjamin
- [Plants] Re: Higher forgery resistance almost for… cwwynn@uwe.nsa.gov
- [Plants] Re: Higher forgery resistance almost for… Russ Housley
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Viktor Dukhovni
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Michael Richardson
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Filippo Valsorda
- [Plants] Re: Higher forgery resistance almost for… Brendan McMillion
- [Plants] Re: Higher forgery resistance almost for… Andrew Ayer
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… David Benjamin
- [Plants] Re: Higher forgery resistance almost for… Amir Herzberg
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… Amir Herzberg
- [Plants] Re: Higher forgery resistance almost for… Chase Abbott
- [Plants] Re: Higher forgery resistance almost for… Bas Westerbaan
- [Plants] Re: Higher forgery resistance almost for… David Benjamin
- [Plants] Re: Higher forgery resistance almost for… Andreas Hülsing