Authenticated encryption
An authenticated encryption (AE) scheme is a symmetric-key encryption scheme that is CPA-secure and has integrity of ciphertexts: no efficient adversary with an encryption oracle produces, except with negligible probability, a ciphertext that the oracle did not output and that decrypts to a message rather than to — BN00.
Syntax
An AE scheme is a SKE scheme with respect to keyspace , message space , and ciphertext space :
- , a randomized algorithm sampling a key ,
- , a randomized algorithm taking a key and a message , outputting a ciphertext ,
- , a deterministic algorithm taking a key and a string , outputting a message or to reject .
As an object, authenticated encryption denotes a -correct SKE scheme whose message space contains, for every , two distinct messages of the same length that an efficient algorithm outputs on input , and which is CPA-secure and INT-CTXT-secure. Without correctness, and meet both notions. With the single message , the scheme with outputting , and accepting only meets both — standard. Every left-right query has , so its CPA advantage is ; the only string that decrypts is , which is in once has been queried, and before that answers until submits , so verification queries win with probability at most .
Properties
Correctness
is -correct if it is a -correct SKE scheme. When , is perfectly correct.
Privacy
Privacy is CPA security of as a SKE scheme: queries a left-right encryption oracle and has no access to .
Integrity of plaintexts
In the INT-PTXT game, has an encryption oracle and a verification oracle that reports whether a string decrypts, and wins if it submits to a string that decrypts to a message it never submitted to — BN00.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{int\text{-}ptxt}}_{\mathsf{AE},\calA}(\secpar)$}
\begin{algorithmic}
\State $k \gets \KeyGen(1^\secpar)$; $\calQ \gets \{\}$; $\mathit{win} \gets 0$
\State $\calA^{\calE, \calV}(1^\secpar)$
\Return $\mathit{win}$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calE(m)$}
\begin{algorithmic}
\State $\calQ \gets \calQ \cup \{m\}$
\Return $\Enc(k, m)$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calV(c)$}
\begin{algorithmic}
\State $m \gets \Dec(k, c)$
\If{$m \ne \bot$ and $m \notin \calQ$}
\State $\mathit{win} \gets 1$
\Comment{$m$ was never encrypted by $\calE$}
\EndIf
\Return $[m \ne \bot]$
\end{algorithmic}
\end{algorithm}
An AE scheme is INT-PTXT-secure if for all efficient ,
is negligible.
Integrity of ciphertexts
The INT-CTXT game records ciphertexts instead of messages: wins if it submits to a string that decrypts to a message and that did not output — BN00.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{int\text{-}ctxt}}_{\mathsf{AE},\calA}(\secpar)$}
\begin{algorithmic}
\State $k \gets \KeyGen(1^\secpar)$; $\calQ \gets \{\}$; $\mathit{win} \gets 0$
\State $\calA^{\calE, \calV}(1^\secpar)$
\Return $\mathit{win}$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calE(m)$}
\begin{algorithmic}
\State $c \gets \Enc(k, m)$; $\calQ \gets \calQ \cup \{c\}$
\Return $c$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calV(c)$}
\begin{algorithmic}
\State $m \gets \Dec(k, c)$
\If{$m \ne \bot$ and $c \notin \calQ$}
\State $\mathit{win} \gets 1$
\Comment{$c$ was never output by $\calE$}
\EndIf
\Return $[m \ne \bot]$
\end{algorithmic}
\end{algorithm}
An AE scheme is INT-CTXT-secure if for all efficient ,
is negligible. An authenticated encryption scheme is a SKE scheme that is CPA-secure and INT-CTXT-secure — BN00.
For a perfectly correct scheme INT-CTXT security implies INT-PTXT security, since every output of decrypts to a message submitted to — BN00. CPA security and INT-CTXT security together imply CCA security (AE ⇒ CCA-secure SKE) — BN00. Concurrently and independently, KY00 define unforgeable encryption, in which no efficient adversary with an encryption oracle outputs a valid ciphertext that the oracle did not return, and prove that unforgeability together with CPA security implies CCA security.
Variations
Nonce-based AEAD
A nonce-based authenticated encryption scheme with associated data (AEAD) encrypts deterministically under a nonce and authenticates, without hiding, a string of associated data — Rog02. It is a tuple with respect to keyspace , nonce space , message space and associated data in :
- , a randomized algorithm sampling a key ,
- , a deterministic algorithm taking a nonce , associated data and a message , outputting a ciphertext ,
- , a deterministic algorithm outputting a message or .
Correctness requires for every output by and all , and . Assume for a fixed function .
An adversary is nonce-respecting if it never repeats a nonce across its queries to the encryption oracle. Without this restriction, wins the privacy game by repeating a query, since is deterministic and the world-1 oracle is not.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{priv}}_{\Pi,\calA}(\secpar)$}
\begin{algorithmic}
\State $k \gets \KeyGen(1^\secpar)$; $b \getsr \bits$
\State $\calO_0(N, a, m) := \Enc(k, N, a, m)$
\State $\calO_1(N, a, m) \getsr \bits^{\ell(\secpar, |m|)}$
\Comment{$\calA$ is nonce-respecting; $\calO_1$ uses fresh coins on each query}
\State $b' \gets \calA^{\calO_b}(1^\secpar)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
In the authenticity game outputs a forgery , which may reuse a nonce of an earlier query, and wins if it decrypts and was not an answer of the oracle.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{auth}}_{\Pi,\calA}(\secpar)$}
\begin{algorithmic}
\State $k \gets \KeyGen(1^\secpar)$; $\calQ \gets \{\}$
\State $(N^*, a^*, c^*) \gets \calA^{\calE}(1^\secpar)$
\Comment{$\calA$ is nonce-respecting in its queries to $\calE$}
\If{$(N^*, a^*, c^*) \in \calQ$}
\Return $0$
\EndIf
\Return $[\Dec(k, N^*, a^*, c^*) \ne \bot]$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Oracle}
\caption{$\calE(N, a, m)$}
\begin{algorithmic}
\State $c \gets \Enc(k, N, a, m)$; $\calQ \gets \calQ \cup \{(N, a, c)\}$
\Return $c$
\end{algorithmic}
\end{algorithm}
A nonce-based AEAD scheme is secure if for all efficient nonce-respecting ,
are negligible — Rog02.
Other results
Generic composition
For a SKE scheme and a MAC under independent keys and , the three generic compositions encrypt as follows, and decryption outputs whenever the tag does not verify — BN00: Encrypt-then-MAC (EtM) outputs for ; MAC-then-Encrypt (MtE) outputs ; Encrypt-and-MAC (E&M) outputs .
For a CPA-secure and a SUF-CMA-secure on arbitrary-length messages, EtM is an authenticated encryption scheme (CPA-secure SKE + arbitrary-length SUF-CMA MAC ⇒ AE), hence CCA-secure (Arbitrary-length SUF-CMA MAC + CPA-secure SKE ⇒ CCA-secure SKE) — BN00. For a perfectly correct CPA-secure and a that is UF-CMA-secure against forgers that also have a verification oracle, all three compositions are INT-PTXT-secure, and EtM and MtE are CPA-secure — BN00. MtE and E&M are not generically secure: assuming CPA-secure SKE schemes and SUF-CMA-secure MACs exist, some such pair makes MtE neither INT-CTXT-secure nor CCA-secure, and some such pair makes E&M not CPA-secure — BN00.
TODO: add fixed-construction barrier pages for MAC-then-Encrypt and Encrypt-and-MAC, each with BN00’s exact counterexample and hypotheses, once the BN00 paper (eprint 2000/025) is read.
Participates in
Builds on Authenticated encryption
Produces Authenticated encryption