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

Nick Sullivan <nicholas.sullivan@gmail.com> Wed, 15 July 2026 14:33 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 4433D1173B12C for <cfrg@mail2.ietf.org>; Wed, 15 Jul 2026 07:33:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784126005; bh=j2ZjYdOsJ3Aruu+EsMKBqgU9TGTFX68dEcgn4yQyJDw=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=dTXlOLDtu2WSow+OLc4nlOVQaHX9betWkf9ereLMQeWqsH76l6GpcUzmGkJcXTpCU 3Tak55jK3IkucfnYNMkaQaBOlXdXog48AhX6wkzEJRfnOrrOqcRJkT51uWigPXmCkG TH73bMgYOKke/opuzxIYEJj677vt0CGjDVykZPDw=
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=ham 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 qWECSJPNnjhv for <cfrg@mail2.ietf.org>; Wed, 15 Jul 2026 07:33:24 -0700 (PDT)
Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 4B9431173B120 for <cfrg@irtf.org>; Wed, 15 Jul 2026 07:33:24 -0700 (PDT)
Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-81e851aebeeso62482137b3.0 for <cfrg@irtf.org>; Wed, 15 Jul 2026 07:33:24 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784125998; cv=none; d=google.com; s=arc-20260327; b=sAAIriM323CtS2WcJmGGhHzI4v0Yl9j/3NFH2/6S4gQ8/4YtnnI0fHWmBMcVELqtiw whxXx9GqMecNm90kJHyIGWlUsq05LQ7pehpZneh3kY85UvKP0jjDBv63KjIACcCK2kMs ROA9T//MRSTxO65kIDS4pQsZliRGkWuNF6zyLGmFzaccQ0popz9u/j0qGeph/ucc+z8k PHCumug9htfAdfGgRyJSFUzzY13O+RoBoubbDl/PRtaJPti7LInVX0jYP6/dGC4s5DUg 3qIYtAu104jD2fqKM+ZjUUPOfB9sAFyJAl5Wl+4WbsygID7TGIp9U8EjaOy4dS2kw11s dKPA==
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=6PJ4nxqelT2qU8mrVwpn8/pVzoxYfbhtE51FeYJcKGs=; fh=qKRxVRw3QZmicHSu/tRwB8u3YuhLU84G2a/+E5bFUXw=; b=gjvnuJgUdy4mcYGRIHwNUtkb6pzKb9OpRJPNO2xxhBB51hvQ8KxAmCwIfDVDx19+qM iGZ+eCK86k1n7tBMkzLpmSxDWUIAqu+dte8TiTZb3dyjVVXdx8Xh6x1Qsd5RXZKCMslr SW/UxGZ5YIJ6sAplY9jMwclFoV7NtpSM9zqMmsPzPfRvKBop45Ct83I3o03gXZdsHpmE MRrCqhQKR2myFaSzuRGnhFJplTK8srkDzaiL/rCdpW7lQU924JaKc7GqqsKPpz88Jhd3 1coQp5spP5XBjCM+z8wtgQ+C6ZBq5k2rTL6kfl4cQcB2KUTCh4OHw3arsU2rpu89AICV slMA==; 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=1784125998; x=1784730798; 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=6PJ4nxqelT2qU8mrVwpn8/pVzoxYfbhtE51FeYJcKGs=; b=RvEJ/YUJE8z2E0uWADlYybRB/EcK2IH9uLr3fum2bWCEloKmv/o0raxIZqRfcd2kad 8z4JA0/YzxEIdzIBvFQWk8HvncB+66XOOig9DMQFnPlf5w7ddOr7xz9chyCPxAXtSYHz mmf6xLVCougA125aM80yVCaB1+/+lMQlG876UgD4lbnSwW2dRqpRvghh+oLrxcpwBd7Z C6aeZ4mYsTx1WW1gjuFVj+Vm3NoGtUxCctlVcuAYm9z635Dv+C+yuvHW7lUIGwyhKWy7 9ePWvhrQGDaL0drs+PiEsaE437f/15lmGSS6NycqK98SZ8hrX4SHkkjVhx1u3ST/mWhZ bJCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784125998; x=1784730798; 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=6PJ4nxqelT2qU8mrVwpn8/pVzoxYfbhtE51FeYJcKGs=; b=nE1hPUlL8YkuyQR3V5GMsOWM1PV92EW1Y0qvUhSQFgZ3ZTnsyBYtBJnYmpj8tdDhiS nPMzkNLdcJxpUV/tmQmdu/rCd+hPs+u0VorgE4o9DCDg93OY2klZ/lRvPqXM0TYWy+Rt oS41D87IgmLvxjjsk/TZipJ2NXxIAIW0+QEPwr4nHME562Q6e0n/wpDh9Li2NOf9rAko OWWm5cYrnWIJPtpxhus5XTd7KPjVWbXoba8th6CdUo5ih5zaV5921E6DSssZ6ucPNUHv zd8GE2M3rjOwCBpcAbWaW0pYD6bkwrOPgYSeyD6906B+0VVOB4AL9n6wXr7TlXTuZAcD 0Hgg==
X-Forwarded-Encrypted: i=1; AHgh+RoZ5PT9Z8cd9R9z9W/OEUTyTHrzXRvWF0fjFMK4dM5RH6kyfy0DPqe/RVjjY9oudmtnkqYT@irtf.org
X-Gm-Message-State: AOJu0YyK/LYISQFntMKSjH1kEV5nz1kXJ7lwce5dobjYOPPtOLza2Heb N5Hk2gs8Cw0aMTlUgBSGgIkrxVzAUV2GJbdCI+1JFfE6Bvb0Jl34i2ZIs8+JoLWsrpQpfeA9f4U Kb2SV6LbeD8pXu3+7ifvJRgNOLMUEklU=
X-Gm-Gg: AfdE7cl637feue2ty5WyrywfcaYYAn8MkI/mCvUfOC0+hJBom3AEZ/lZO6OQT4MNpNW Sx1ZdXxg3p8+U3yW+kTKg14u8xaKNbWtsb1XDrzAm4F/kpTU37WwDFfyF/tAL0AdrO2lIErzrPo iQbdiBzYvdokQfl6MHOpn/Ggeiji38zBiJT5t5vnffmtuYeMhWulOphEVDF5SiU3nJEMkPX+hpU Xm0MsV6IRRky9/k6guv67Y6shFtjgH4s9o3uHY3ry8opXgm19MAC96Vx6Oe6hwfYZAESDp6S9Ry 1OaDEmFws4NgzBdXHtZG2mKxptxQL0n87oJQZr83n3ngbiIWqOJx/V46f9FjRU7GM0Ww6+MpDfj JXjOuvTgygF8Fn3PV5LTzPEtKXJBE1fQMonxZTQ==
X-Received: by 2002:a05:690c:620b:b0:81d:a1e5:a49a with SMTP id 00721157ae682-81ebb11baccmr55925717b3.19.1784125997636; Wed, 15 Jul 2026 07:33:17 -0700 (PDT)
MIME-Version: 1.0
References: <CAOjisRximY8dNJVFkYyHogh6UyH6HOUK==yt8+b-Muy9VntX9Q@mail.gmail.com> <ef6adb6e-cc5e-4021-96c7-4691404c9b1b@app.fastmail.com> <CAOjisRwvAKwgWnsV_niRUcBwTsu4hFVANSSYV4vqeye1BeX=mw@mail.gmail.com> <CAOjisRzKCtkbu2LJnAwCNg5C=k3CM+Xs=TAL_0LCnK80jg7TZA@mail.gmail.com> <AS4PR07MB8825F09FD2B561D4465F424389F82@AS4PR07MB8825.eurprd07.prod.outlook.com>
In-Reply-To: <AS4PR07MB8825F09FD2B561D4465F424389F82@AS4PR07MB8825.eurprd07.prod.outlook.com>
From: Nick Sullivan <nicholas.sullivan@gmail.com>
Date: Wed, 15 Jul 2026 15:33:04 +0100
X-Gm-Features: AUfX_myf-BuTtQgmNLsX5lq2iOfXLm5G2lL7mskuAJvqTdq4mfYO_-R7O1j2Ogg
Message-ID: <CAOjisRw0Fzatksu3=q6+U_B8+-BpeL8B-MkM4WYQgKgM1JDoEw@mail.gmail.com>
To: John Mattsson <john.mattsson@ericsson.com>
Content-Type: multipart/alternative; boundary="00000000000052e2390656a73487"
Message-ID-Hash: 3JY4HRG3WW36TDMI2KJEHTVBZKJT6DAW
X-Message-ID-Hash: 3JY4HRG3WW36TDMI2KJEHTVBZKJT6DAW
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>, "draft-ietf-moq-secure-objects@ietf.org" <draft-ietf-moq-secure-objects@ietf.org>, "draft-ietf-openpgp-crypto-refresh@ietf.org" <draft-ietf-openpgp-crypto-refresh@ietf.org>
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/f4n3W4fvOQIGdTOGHiw6CqmRAvk>
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 John,

I'm encouraged by your enthusiasm. There was a risk that this document
would be misinterpreted as *just another segmented encryption scheme*,
rather than what it really is: a new basic interface for symmetric
cryptography. The inspiration for this framing goes to the FLOE authors,
I'm just extending their work and filling in some gaps.

I'll look into finding a slot for a side meeting.

Best,
Nick

On Wed, Jul 15, 2026 at 2:50 PM John Mattsson <john.mattsson@ericsson.com>
wrote:

> I would personally be fine with an IETF–CFRG split.
>
> Will raAE and SEAL be discussed anywhere in Vienna (CFRG, DISPATCH,
> Hackathon, side-meeting, etc.)? I think they should be.
>
> Standardizing raAE and defining interoperable formats for its use would be
> one of the most useful ideas I have seen in a long time. I believe such a
> specification would see broad adoption across a wide range of protocols and
> applications.
>
> Cheers,
> John Preuß Mattsson
>
> *From: *Nick Sullivan <nicholas.sullivan@gmail.com>
> *Date: *Wednesday, 15 July 2026 at 15:06
> *To: *Martin Thomson <mt@lowentropy.net>; cfrg@irtf.org <cfrg@irtf.org>
> *Cc: *draft-ietf-moq-secure-objects@ietf.org <
> draft-ietf-moq-secure-objects@ietf.org>;
> draft-ietf-openpgp-crypto-refresh@ietf.org <
> draft-ietf-openpgp-crypto-refresh@ietf.org>
> *Subject: *[CFRG] Re: Random-access authenticated encryption (raAE) draft
>
> Hi Martin,
>
> Following up on your point that this belongs in the IETF. After some
> reflection, I propose a pressure test: run raAE and SEAL through the
> two-lane model in draft-sullivan-crypto-publication (
> https://datatracker.ietf.org/doc/draft-sullivan-crypto-publication/) the
> pattern generalized from the HPKE WG. SEAL sits at the same abstraction
> layer as HPKE, so it could be a good test of the model.
>
> The two lanes:
>
>   engineering lane (IETF)   |   research lane (CFRG)
>                             |
>   MLS (attachments)         |
>   file encryption (TBD)     |
>   MoQ (?)   OpenPGP (?)     |
>            |                |
>            v                |
>          SEAL <------------------>  raAE
>      concrete raAE          |    abstract primitive
>      via dispatch           |    analogous to AEAD
>
>
> Consumers pool their requirements into SEAL, the engineering piece, which
> goes to dispatch to find its IETF home. raAE stays in CFRG as the security
> foundation for SEAL: the abstract definition, requirements, and security
> reductions for random-access authenticated encryption, building on
> validated public research. The file encryption John suggested in this
> thread could become its own working group or land in an existing one, with
> SEAL under the hood.
>
> There are concrete benefits over current designs for the potential
> consumers marked with a question mark:
> - MoQ adopted an SFrame-based scheme for end-to-end objects in March
> (draft-ietf-moq-secure-objects). It encrypts a whole object in one AEAD
> call, and the draft notes that a large object must arrive in full before
> any validation can start. A SEAL payload validates segment by segment as
> bytes arrive, and a reader can verify one segment of a cached object
> without reading the rest.
> - OpenPGP verifies a signature only after decrypting and hashing the
> entire message. A SEIPD v3 built on SEAL would sign the one snapshot value,
> so a reader verifies a signature over any part of a message without reading
> the rest. raAE also helps with editing.
>
> I've cc'd the authors of both in case there's interest. There are also
> opportunities to consolidate other designs under the raAE primitive
> interface, even if SEAL is not the exact raAE chosen.
>
> What do you think?
>
> Best,
> Nick
>
> On Tue, Jul 14, 2026 at 10:06 AM Nick Sullivan <
> nicholas.sullivan@gmail.com> wrote:
>
> Hi Martin,
>
> I’m not sure I fully agree. Something like SEAL-simple or SEAL-attachment
> is probably pure engineering, but it seems like it would be useful to have
> a comprehensive research-adjacent document like this to lean on for
> analysis.
>
> Nick
>
> On Tue, Jul 14, 2026 at 9:01 AM Martin Thomson <mt@lowentropy.net> wrote:
>
> 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
>
>