Pseudorandom error-correcting code

A Pseudorandom Error-correcting Code (PRC) is a type of SKE that requires ciphertext decoding to be robust to some modifications (PRC ⇒ SKE), introduced by CG24. There is additionally a zero-bit PRC which does not allow for a message. Both variations are useful for constructing cryptographic watermarking of generative AI.

Syntax

An -bit PRC, for , is a tuple of efficient algorithms , with respect to key space , message space , and ciphertext space such that

  • , is a randomized algorithm that takes a security parameter, and outputs a key ,
  • , is a randomized algorithm that takes a key and message , and outputs a ciphertext ,
  • , is a deterministic algorithm that takes a key and candidate ciphertext , and outputs either a message or

A zero-bit PRC has the same requirements as an -bit PRC, except that the message space is just the singleton set , which means that takes no input and just outputs codewords. Then, simply detects whether or not the candidate ciphertext is close to a codeword.

Properties

As an object, a PRC denotes an -bit PRC with that is pseudorandom, sound and -robust for some constant ; a zero-bit PRC is the same with message space .

Pseudorandomness

We define the advantage of a distinguisher as where and is a random response oracle, which on each query gives a uniformly random -bit string (even on the same input, unlike a random oracle).

A PRC is pseudorandom if for all efficient , there exists a negligible function , such that: .

Completeness/Robustness

A PRC is -robust if for every -bounded channel there is a negligible function such that for every message , where . An -bounded channel is a length-preserving function such that for every -bit string , and have Hamming distance at most .

Soundness

A PRC is sound if there is a negligible function , such that for all , — CG24.

Variations

Adaptive robustness

A PRC with adaptive robustness is a PRC as in the base object (pseudorandom, sound and -robust for some constant ) that is in addition adaptively -robust for some constant : no efficient adversary with an encoding oracle outputs a string within Hamming distance of a codeword it received that fails to decode to that codeword’s message — AACDG25 (arXiv v1, Definition 2). Forgetting adaptive robustness leaves a PRC (Adaptive robustness ⇒ PRC).

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{adapt}}_{\mathsf{PRC},\delta,\calA}(\secpar)$}
\begin{algorithmic}
\State $k \gets \Gen(1^\secpar)$; $T \gets \emptyset$
\State $x \gets \calA^{\calO}(1^\secpar)$
\Comment{$x \in \bits^n$}
\State $m' \gets \Dec_k(x)$
\Comment{$m' = \bot$ is possible}
\Return $[\exists (m, c) \in T : \mathrm{wt}(x \oplus c) \le \delta n \wedge m' \ne m]$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calO(m)$}
\begin{algorithmic}
\State $c \gets \Enc_k(m)$; $T \gets T \cup \{(m, c)\}$
\Return $c$
\end{algorithmic}
\end{algorithm}

A PRC is adaptively -robust if for all efficient ,

is negligible — AACDG25 (arXiv v1, Definition 2). The game bounds only efficient adversaries, while an -bounded channel need not be efficiently computable, so -robustness is a separate requirement of the variant.

Ideal PRC

An ideal PRC is one for which, with , oracle access to is computationally indistinguishable from oracle access to an ideal functionality. Its encoder returns a fresh uniformly random -bit string on every query. Its decoder returns on any string within Hamming distance of a string the encoder returned on input , and on every other string. The adversary never receives . Ideal security implies pseudorandomness, soundness and adaptive robustness against efficient channels — AACDG25.

Zero-bit PRC

A zero-bit PRC has a singleton message space : the encoder takes no message input and simply outputs a codeword, while the decoder detects whether a candidate string is close to a codeword. Zero-bit PRCs are useful for watermarking generative AI outputs: embed a pseudorandom codeword into generated text/images such that possession of the secret key allows detection, while outputs look uniformly random to anyone without the key — CG24.

Substitution-robust zero-bit PRC

As an object, a substitution-robust zero-bit PRC denotes a family such that, for every constant , is a zero-bit PRC that is pseudorandom, sound and robust to every -bounded channel; the code, its block length and its key generation may depend on . A -bounded channel is a length-preserving, possibly randomized, channel with , and robustness to it means that is negligible for and — CG24 (§5.2, Definitions 1–2). Every -bounded channel as defined above is -bounded in this sense, so the code for is an -robust zero-bit PRC (Substitution-robust zero-bit PRC ⇒ Zero-bit PRC).

Other results

Participates in

Builds on Pseudorandom error-correcting code

Produces Pseudorandom error-correcting code