[CFRG] Re: Random-access authenticated encryption (raAE) draft

Nick Sullivan <nicholas.sullivan@gmail.com> Wed, 15 July 2026 14:25 UTC

Return-Path: <nicholas.sullivan@gmail.com>
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 8094111739D75 for <cfrg@mail2.ietf.org>; Wed, 15 Jul 2026 07:25:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784125508; bh=/Rmoq3ppr2nWGXhLOsZMPRwtLck05O1ZlT0E2lKOegU=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=wfLGeF9bZSAbFOjeDL93tL6rVnSHfmKkN4GV6XzCZ2t11rQR1/refEodp5Sz04q+C DvUHKBR8wbYJ+HES+mLk+s832z2eEBM0x28BN1mYgXyoBJr04I01FpFdLUcxgOeo8m knvpjb9Hus3H9ICJTw1HUkxHDa9foc+KhtSvnpH4=
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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=gmail.com
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 B7TxA-ejDUV1 for <cfrg@mail2.ietf.org>; Wed, 15 Jul 2026 07:25:07 -0700 (PDT)
Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (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 mail2.ietf.org (Postfix) with ESMTPS id 3AE9411739CC1 for <cfrg@irtf.org>; Wed, 15 Jul 2026 07:25:05 -0700 (PDT)
Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-81ed27fe974so5819487b3.2 for <cfrg@irtf.org>; Wed, 15 Jul 2026 07:25:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784125499; cv=none; d=google.com; s=arc-20260327; b=NRU/neTGUCS+tLkayU/Y8NkVUdHsRFgr8n7JGr9ymARyLlYLEfK1E+CynRECc6dVEr FCTCsYXxL6JWAcEd2yk5Aks/vKu7Oxg4SKS5zEorHuIlfLLYEcOc78qqg2LFyUr+e+JS wijG+Oe0RKnA+igwNW6rTfpfEmm9EzitmOPCSZ2jtQ+Snd8H09jI2+yGg0heUOp/IYLU tT1c5sOPTIDccEu0MYplz1wpSwLQMSqGy/4WjVMmFWRCzgWNncQr9vqOclJjdB18JAwt rXZ5AqculeyVKtnBTh25g2/hiZ/lJlavV7+AGXEkD7zTqJmUmn9+UFyl4fEdo4FZXeec nmVw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/Rmoq3ppr2nWGXhLOsZMPRwtLck05O1ZlT0E2lKOegU=; fh=Xp5ZqgH5n6GlyUta3N3pqTM8FShunV28K/bmxP1ZqnE=; b=daAGwuEEhONCap7RGEL4ZoW2zSPyM1BuJthQZZ76KeKPA2n0yls3xTrvp1dJqCzemW s8ZKc3rUJX78vZiM7LFPAVaVT3mU+HHa71Aa+6Jk6tuMHyczOSHqxWmaSjrPRFg7PkqD BWv7RZPx3crjH5pCsutgYJa2sJ3tX0LvxJwA3rKhPHFUss78egRrFOmZgUwYiMc4df1j 1JQkJ6vrHPGXVTO/6sfzNFzUOypnoxx7dBf1xWnaXWzwp7Y0awXQQFvfomC+Rf55vGae nuNtqtsolmpNlWjV9tYqtzHUPw6PHjkyxljF7vblAxBa8qPc57KhjqQR/yMtv819d/EG xr3Q==; darn=irtf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784125499; x=1784730299; darn=irtf.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/Rmoq3ppr2nWGXhLOsZMPRwtLck05O1ZlT0E2lKOegU=; b=geGR+xDLz4STDv3nzElF/WZxjatsayKyLsUM+HO0w41hmpxU62eWGUst440dQRNrqN PA6SBq9dpEgTziZaWJPSlzjADEL278gEg77gdsq2nIAOsjjLz6xwUUDuGAaskgcSiaA9 CL2A77/u15LfmeQ3MdxLmJL42g289/Js2euLicrM7ZQVMkzXwY6poAP65KKazYVQ/Nno xdge/hJiTzm6nqAyMlIMOFsOoHsl7PGDvc3878lgXZOWZMok2PV0Ogd1Ft0uGFRdjCuN 04zZ72mMfb56WBcBivcIeEUfRvTzw0bbeYaAWsC3U5VtR5Kbda7O/RfhTNOBbmHE0Hq4 IwbA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784125499; x=1784730299; h=content-type:cc: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=/Rmoq3ppr2nWGXhLOsZMPRwtLck05O1ZlT0E2lKOegU=; b=QtAFII088FNFk3XbctfOdp3JMiC94XZzk0FSi6J/R1kABT9Hm5VnAL4n+v41P1h+oV YCI4M+E6nF/uUs2Q52lWJNVxi+JTJZIBslOJ0o1pqNsFWvWysuT/Ldor0Bj3r18LnVm5 lvaQvkvbswxkNLYbHSRo9gC94QEKtlhgyUjxpsIagj8rG766jv9T38tO7LAR1OE0IRbs CaUXdHxaQsMT3/gb9kM2DKbYOUO9A1kujHu4Qq2+T6Tpss/cVXqOO+Ng+/5dxH+DtHZ0 skpiNlMGxElRHQyYkhEeiDzPFJjEoXthN7ZZsHGpL8XMfSkGTJiAo1Kbrkgr6+ptu8cR E18g==
X-Forwarded-Encrypted: i=1; AHgh+Ro7EftKddgzr07IJ7KFQ8Q+GMIcrW3yln1Y6EbTPR+oT+/TwCDJtB5que2L37hk9VhZ9dd+@irtf.org
X-Gm-Message-State: AOJu0YyXoHU37TuOKOI+vz12QcuNGccpVNXXhWNCHJNu9Tzg36zKs4/u Mxpe+Z/PaZuR48Y/sRPeYH/9mt7Zk6ytqc37l3xRbLy5L/bfUSX8uEQyAG+od40Kb/9qt9Qono6 Qalyxigh254TXAMBTppu0t84/jb7eMlU=
X-Gm-Gg: AfdE7cn8OzLL0016wNq0prk3fbRKfBzz4ugHn/oJohyF8YgckO7DVBhGeClIGserxKl WwQN91h08fqH95XZzyjfmS+d8FflPFSpa6BqAYlURmAumShrgojwStyd/50EN+Zge/7MWgt+K4D 11GE72XRzLnpQOrLvOgAa2HlRNOdAsQ97PW9LeBIlTJyQH1NVPc+F3jNHmuFSsyLQr4KLt2Nttw wSSHmREq6EIdAzMSRxJQwKC3PkDrS1Lfipt5y82iw3+jhPOSHWsebhXTQqB6VkWVCDAytx0IJ96 3FXko41sjOj/CD7xTZgLky543Ar+gDdVlo1aCY0hZaWGA9PHgHnpGpFTgB8oeTr83ah5YAWZptd puZFtEachIH18ZyI8DhXkzQLrCn9x1j+tn8JUqg==
X-Received: by 2002:a05:690c:9a0b:b0:81e:8988:a8f8 with SMTP id 00721157ae682-81e9006129cmr126314807b3.27.1784125498491; Wed, 15 Jul 2026 07:24:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAOjisRximY8dNJVFkYyHogh6UyH6HOUK==yt8+b-Muy9VntX9Q@mail.gmail.com> <ef6adb6e-cc5e-4021-96c7-4691404c9b1b@app.fastmail.com> <6a56fc0f.9b54edd6.39ecd4.175cSMTPIN_ADDED_BROKEN@mx.google.com>
In-Reply-To: <6a56fc0f.9b54edd6.39ecd4.175cSMTPIN_ADDED_BROKEN@mx.google.com>
From: Nick Sullivan <nicholas.sullivan@gmail.com>
Date: Wed, 15 Jul 2026 15:24:47 +0100
X-Gm-Features: AUfX_mxH4w5ncIXPQubQRXwKgz6LG7fHCXD3cWD_Fv-qsTzowDgyX1aVdfgZPtw
Message-ID: <CAOjisRzxNTNUY8Wt89P3Q05cOmCjdD6-LttaaXvNjY2bJnvW=A@mail.gmail.com>
To: Wang Guilin <Wang.Guilin=40huawei.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009289e30656a7167d"
Message-ID-Hash: QF7ZRREEHNZYS25322QMWB4QTOJCAZJJ
X-Message-ID-Hash: QF7ZRREEHNZYS25322QMWB4QTOJCAZJJ
X-MailFrom: nicholas.sullivan@gmail.com
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
CC: "cfrg@irtf.org" <cfrg@irtf.org>, Wang Guilin <Wang.Guilin@huawei.com>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [CFRG] Re: Random-access authenticated encryption (raAE) draft
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/_ZIGz9-QnJffAAjkS2hFE9A3KQA>
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>

Hi Guilin,

Thanks for raising this question! They're complementary, and the comparison
is instructive about how powerful the raAE abstraction is. Content-defined
chunking cuts a data stream into chunks, choosing each cut point from the
bytes around it. An edit therefore re-cuts only its own neighborhood: the
chunk holding the edit changes, and every other chunk comes out
byte-identical, just shifted in the file. A store keeps one copy of each
chunk, so only the changed ones are stored again. raAE covers the other
half: authenticated encryption of segmented content, with random access and
one snapshot value a protocol can sign. A deduplicating store needs both,
and neither constrains the other.

The mapping is simple. A CDC chunk is a SEAL segment. Segments take any
length up to segment_max, so as long as CDC's maximum chunk size is at most
segment_max, chunks map to segments one to one, and boundaries are an input
raAE already accepts. What's nice is that two archive styles come
naturally: a static archive that grows by appending, and an updateable
archive with limited in-place edits, where a segment grows within the cap
or is rewritten outright. CDC decides where segments begin and end, and the
SEAL profile decides whether they can change afterward.

On your question about ciphertext changes: yes, in the locality sense. Each
segment is an independent AEAD ciphertext, so an altered segment fails its
own check while every other segment still decrypts and verifies. That's the
same locality CDC gives plaintext edits, applied to the ciphertext side.
Nothing slips through, though: the altered segment is rejected rather than
misdecrypted, and the object as a whole fails the snapshot check, so a
segment can't be changed or dropped unnoticed. A signed snapshot makes
verifying any segment one signature check plus a local read.

So the short summary is: yes, SEAL is a great fit for instantiating CDC,
backed by the security proofs extended raAE provides.

Best,
Nick

On Wed, Jul 15, 2026 at 4:18 AM Wang Guilin <Wang.Guilin=
40huawei.com@dmarc.ietf.org> wrote:

> > Mutable objects, like encrypted file formats, encrypted disk images, and
> object stores that accept partial updates, also need in-place modification
> of any part without re-encrypting the whole.
>
> Does this mean that some changes in ciphertext do not affect decryption?
>
> raAE may relate to CDC (Content-Defined Chunking), a technology used in
> cloud backup setting. Here is a paper from the team of Prof. Kenny
> Paterson.
>
> Breaking and Fixing Content-Defined Chunking. CCS 2025: 2294-2308
>
> Cheers,
>
> Guilin
>
> *发件人:*Martin Thomson <mt@lowentropy.net>
> *收件人:*cfrg@irtf.org <cfrg@irtf.org>
> *时 间:*2026-07-14 16:02:33
> *主 题:*[CFRG] Re: Random-access authenticated encryption (raAE) draft
>
> Hi Nick,
>
> I'm going to suggest a DISPATCH outcome for this, which does not involve
> CFRG. I think that this is pure engineering and the IETF should be the
> place to take it up. The usual requirements apply, of course: we need to
> see the receipts on customers for the mechanism, etc...
>
> On Tue, Jul 14, 2026, at 00:54, Nick Sullivan wrote:
> > Hi all,
> >
> > Writing as an author, not a chair. I've been working on a draft I want
> > to share with the group. This is not a call for adoption, just sharing
> > the early draft in case there's interest. Comments and reviews welcome.
> >
> > *The **problem*. Applications dealing with large encrypted objects
> > (encrypted backups, encrypted archives, object stores) need to read any
> > part of the object without decrypting the whole thing. They also need
> > to verify that each part read belongs to the current object at its
> > claimed position, without processing the entire object. Mutable
> > objects, like encrypted file formats, encrypted disk images, and object
> > stores that accept partial updates, also need in-place modification of
> > any part without re-encrypting the whole. The positional and inclusion
> > proofs should also remain valid after each modification. Take an
> > encrypted database file or an encrypted disk image: any block is read
> > or written by index, and a reader wants to know that the block it reads
> > really belongs at the offset it came from in the current image, without
> > re-hashing every block on every write. No proven security notion in the
> > literature covers all of this under one primitive. As such, each
> > application ends up rolling its own segmented AE layer, mostly without
> > security proofs for the rewrite and whole-object cases.
> >
> > Prior work covers pieces of the problem. CHAIN (Hoang, Reyhanitabar,
> > Rogaway, Vizár 2015) is sequential. STREAM (same paper) supports
> > random-access decryption of individual segments and encodes a
> > final-segment bit for truncation detection, but has no whole-object
> > snapshot and no in-place rewrite. Its deployed relatives (Tink
> > Streaming AEAD, OpenPGP v2 SEIPD) are write-once streaming formats and
> > don't expose rewrite at all. The v2 SEIPD design is itself the outcome
> > of Efail (Poddebniak et al., USENIX 2018), where v1's whole-message
> > integrity failed and applications acted on unauthenticated plaintext.
> > FLOE (Fábrega, Len, Ristenpart, Rubin; ePrint 2025/2275) formalizes
> > random-access AEAD security cleanly and gives a proven construction.
> > This work builds on that formal foundation.
> >
> > I've posted draft-sullivan-cfrg-raae-02, "Random-Access Authenticated
> > Encryption." It covers the primitive, the security notions, the prior
> > constructions in the space, and a concrete family of instantiations
> > with test vectors called SEAL (Segmented Encryption and Authentication
> > Layer), as well as a security analysis (companion paper forthcoming)
> > and write/rewrite budgets.
> >
> > The draft has two layers. raAE is the abstract primitive: the base
> > interface and security notions come from Fábrega et al., which this
> > document extends. SEAL is one concrete construction of raAE,
> > parameterized by an AEAD, a KDF, and an epoch length. It has two
> > profiles (immutable and mutable) and an optional snapshot authenticator
> > that binds the whole segment set and updates cheaply on rewrite. A
> > protocol that would previously have signed the whole encrypted object
> > can sign the snapshot authenticator instead and get the same
> > authentication scope without touching the segments. The snapshot
> > authenticator is also not a single construction, different
> > authenticators fit different consuming-protocol contexts. For example,
> > settings that supply only a single CEKs and owner per object versus
> > settings with a shared CEK (as in MLS) necessitate different
> > authenticators.
> >
> > Freshness against whole-object rollback, storage transactions, and key
> > management are explicitly out of scope. Those belong in a consuming
> > protocol.
> >
> > The shortest path to a concrete, testable thing is to read
> > SEAL-simple(AES-256-GCM, HKDF-SHA-256) in Appendix E
> > <
> https://www.ietf.org/archive/id/draft-sullivan-cfrg-raae-02.html#name-seal-simple-implementation->,
>
> > which is the degenerate case for SEAL with no rewrites or snapshot
> > authentication and fixed legacy AEAD/KDF.
> >
> > Reviews and comments on the framing, the security notions, the
> > construction, or the scope are all useful.
> >
> > Draft: https://www.ietf.org/archive/id/draft-sullivan-cfrg-raae-02.html
> >
> > Best,
> > Nick
> > _______________________________________________
> > 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 mailing list -- cfrg@irtf.org
> To unsubscribe send an email to cfrg-leave@irtf.org
>