RSA ⇒ IND-CCA PKE (RSA-OAEP)

Random oracle model · FOPS01 · security loss: quadratic: for an IND-CCA adversary with advantage and running time , the RSA inverter succeeds with probability about in time about

Statement

Let generate a trapdoor permutation over bit strings with domain , , and let be functions of with . OAEP over , relative to oracles and , has public key , secret key , message space and the encryption and decryption below, which pad with zero bits, mask the result with of a uniform seed , mask with of the masked block, and reject a ciphertext whose padding bits are not zero — BR94 (Section 6).

\begin{algorithm}
\algname{Algorithm}
\caption{$\Enc^{G,H}(f, m)$}
\begin{algorithmic}
\State $r \getsr \bits^{k_0}$
\State $s \gets (m \| 0^{k_1}) \oplus G(r)$; $t \gets r \oplus H(s)$
\Return $\Eval(f, s \| t)$
\end{algorithmic}
\end{algorithm}

\begin{algorithm}
\algname{Algorithm}
\caption{$\Dec^{G,H}(\td, c)$}
\begin{algorithmic}
\State $s \| t \gets \Invert(\td, c)$
\Comment{$|s| = k - k_0$ and $|t| = k_0$}
\State $r \gets t \oplus H(s)$; $m \| z \gets s \oplus G(r)$
\Comment{$|m| = n$ and $|z| = k_1$}
\If{$z = 0^{k_1}$}
\Return $m$
\EndIf
\Return $\bot$
\end{algorithmic}
\end{algorithm}

OAEP is perfectly correct: returns , so recomputes and — standard. RSA-OAEP takes to be the RSA function of the RSA assumption, for a modulus of bits, with read as an integer; since a -bit string can exceed , BR94 (Section 7) resample until lies in .

In the random oracle model, with and uniformly random functions that the adversary may also query, and with , OAEP over is IND-CCA2-secure if is partial-domain one-way, meaning that recovering the part of a uniform preimage is hard: for all efficient ,

is negligible — FOPS01; MKJR16 (Section 7.1) states this hypothesis as hardness of partially inverting the primitive. For the RSA function, partial-domain one-wayness is equivalent to one-wayness when is a sufficiently large part of the preimage: lattice reduction turns an algorithm that computes such a part into an RSA inverter that runs it twice. So under the RSA assumption RSA-OAEP is IND-CCA2-secure in the random oracle model, with a reduction that is not tight — FOPS01; MKJR16 (Section 7.1) credits the lattice step to FOPS01.

Notes

  • The seed length must be superlogarithmic: for , the adversary that recomputes under each of the seeds and outputs exactly when one of them equals the challenge ciphertext wins the IND-CPA game with probability 1, since by perfect correctness no encryption of equals an encryption of — standard.
  • The equivalence needs a long : the inverter that outputs a uniform succeeds with probability exactly , which is at least when , so for no permutation is partial-domain one-way and the equivalence fails whenever RSA is one-way — standard.
  • For an IND-CCA adversary with advantage and running time , the RSA inverter succeeds with probability about in time about , since it applies the adversary twice — FOPS01, with the bounds as MKJR16 (Section 7.1) states them. For RSAES-OAEP of PKCS #1 v2.2, whose encoded message begins with eight fixed zero bits that the variant analysed by FOPS01 lacks, the success probability is about — MKJR16 (Section 7.1).
  • RSAES-OAEP encodes a message for an -octet modulus as , with data block in place of , where is the hash of a label and is a string of zero octets — MKJR16 (Section 7.1.1). The leading zero octet keeps the encoding below , so no resampling is needed — standard.
  • BR94 prove OAEP over every trapdoor permutation semantically secure (Theorem 6.1) and plaintext-aware (Theorem 6.2) in the random oracle model. That notion of plaintext awareness implies security against non-adaptive chosen-ciphertext attack but not IND-CCA2 security — MKJR16 (Section 7.1).
  • For a general trapdoor permutation the IND-CCA2 claim has no relativizing proof: relative to an oracle, some trapdoor permutation makes OAEP fail IND-CCA2 security in the random oracle model (No relativizing reduction from TDP over bit strings + ROM to CCA-secure PKE (OAEP)) — Sho01a. The security of RSA-OAEP rests on algebraic properties of the RSA function rather than on the security of general OAEP — Sho01a.