HHK17 Modular Fujisaki–Okamoto KEM Transforms #
Hofheinz, Hövelmanns, and Kiltz ([HHK17], IACR ePrint 2017/604 full version
dated 2 November 2021) decompose the Fujisaki–Okamoto transformation of a public-key encryption
scheme PKE = (Gen, Enc, Dec) with explicit coin space R into two modular steps:
- Derandomization with mandatory re-encryption check
T[PKE, G](encT,decT; §3.1, Fig. 5): given a functionG : M → R, encryptmdeterministically asEnc(pk, m; G(m)), and on decryption recomputeEnc(pk, m'; G(m')) = cafter runningDec(sk, c) = some m', rejecting any ciphertext failing the check (encT_of_decT_eq_some). - Key encapsulation with explicit or implicit rejection:
FO^⊥ = U^⊥ ∘ T(Scheme.encapsBot,Scheme.decapsBot; §3.2.1, Fig. 9): decapsulation returnsnoneon re-encryption failure andsome (H(m', c))on success.FO-notbot = U-notbot ∘ T(Scheme.keyGenNotBot,Scheme.encapsNotBot,Scheme.decapsNotBot; §3.2.2, Fig. 12, written with a negated-⊥superscript in the paper): the secret key (ImplicitSK) retains the public keypkand a secret fallback seedfallback ← M, returning a pseudorandom fallback keyH(fallback, c)on decapsulation rejection so decapsulation never outputs failure externally.
Scope of this module: this file formalizes the T, FO^⊥, and FO-notbot transforms together
with their deterministic recovery and re-encryption rigidity lemmas. The generic explicit-coin PKE
interface, correctness and spreadness live in CslibFrontier.Crypto.Protocols.PKE.ExplicitCoin.
The IND-CPA notion of the FO security theorems is two-stage IND-CPA (cpaAdvantage, via
PKE.cpaExperiment on ExplicitCoinPKE.toPKE), not the fixed-message indCpaGame. Adaptive
random-oracle IND-CCA games and the security reductions live in the FujisakiOkamoto/ submodules;
a standalone transfer of PKE δ-correctness to KEM correctness is not formalized (δ enters only
as a hop inside the IND-CCA bounds).
Source map and model differences #
All section and figure locators refer to the full version of [HHK17] served by IACR ePrint 2017/604, dated 2 November 2021:
- §3.1, Figure 5: derandomization and re-encryption check transform
T[PKE, G](encT,decT). - §3.2.1, Figure 9: explicit-rejection KEM
FO^⊥ = U^⊥ ∘ T(Scheme.encapsBot,Scheme.decapsBot). - §3.2.2, Figure 12: implicit-rejection KEM
FO-notbot = U-notbot ∘ T(ImplicitSK,Scheme.keyGenNotBot,Scheme.encapsNotBot,Scheme.decapsNotBot).
The PKE-level fixed-coin-type and arbitrary-sampler differences are documented in
CslibFrontier.Crypto.Protocols.PKE.ExplicitCoin; the security theorems use two-stage
IND-CPA. In Figures 9 and 12 the encapsulated message, fallback seed and ideal key are uniform.
The algorithms take explicit message and key samplers, and the word-level security theorem
instantiates them with uniform fixed-length words. In Figure 12 both successful decapsulation and
implicit rejection query the same function on a message and ciphertext. The secret seed is the
message argument on rejection.
The imported ExplicitCoinPKE interface exposes the deterministic encryption needed for T to
recompute Enc(pk, m'; G(m')) during decapsulation.
Main definitions #
Cslib.Crypto.Protocols.FujisakiOkamoto.encT,Cslib.Crypto.Protocols.FujisakiOkamoto.decT: theT[PKE, G]derandomization and re-encryption check transform (§3.1, Fig. 5).Cslib.Crypto.Protocols.FujisakiOkamoto.ImplicitSK,Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme: implicit-rejection secret key and FO parameter bundle (FO^⊥viaScheme.encapsBot/Scheme.decapsBot(§3.2.1, Fig. 9) andFO-notbotviaScheme.keyGenNotBot/Scheme.encapsNotBot/Scheme.decapsNotBot(§3.2.2, Fig. 12)).Cslib.Crypto.Protocols.FujisakiOkamoto.decTM,Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsBotM,Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsNotBotM: theTcheck and both decapsulation algorithms with oracle access toGandHin any monad, run by the random-oracle games.decT,decapsBotanddecapsNotBotare these in the identity monad; with pure oracles in any lawful monad the decapsulations returndecapsBotanddecapsNotBot(Scheme.decapsBotM_pure,Scheme.decapsNotBotM_pure).
Main results #
Cslib.Crypto.Protocols.FujisakiOkamoto.decT_encT_eq_some,Cslib.Crypto.Protocols.FujisakiOkamoto.encT_of_decT_eq_some,Cslib.Crypto.Protocols.FujisakiOkamoto.dec_of_decT_eq_some,Cslib.Crypto.Protocols.FujisakiOkamoto.decT_eq_none_of_reencrypt_ne: correctness and rigid ciphertext soundness of theTre-encryption check.Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsBot_encT_eq_some,Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsBot_eq_none_of_reencrypt_ne: honest recovery and explicit rejection forFO^⊥.Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsNotBot_encT_eq,Cslib.Crypto.Protocols.FujisakiOkamoto.Scheme.decapsNotBot_of_reencrypt_ne: honest recovery and pseudorandom fallback rejection forFO-notbot.
References #
- D. Hofheinz, K. Hövelmanns, E. Kiltz, A Modular Analysis of the Fujisaki–Okamoto Transformation (IACR ePrint 2017/604, full version dated 2 November 2021).
T[PKE, G]: Derandomization with Mandatory Re-Encryption Check #
Derandomized encryption Enc_1(pk, m) := Enc(pk, m; G(m)) of T[PKE, G]
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.1, Fig. 5).
Derandomized decryption Dec_1(pk, sk, c) of T[PKE, G] with mandatory re-encryption check
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.1, Fig. 5): runs
m' ← Dec(sk, c) and accepts m' only when Enc(pk, m'; G(m')) = c, with oracle access to
G : M → m R in a monad m. G is queried only when Dec succeeds. The random-oracle games run
it with lazily sampled G; decT is the case of a fixed function G.
Derandomized decryption Dec_1(pk, sk, c) of T[PKE, G] with mandatory re-encryption check
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.1, Fig. 5) for a fixed
function G: decTM in the identity monad.
decT runs m' ← Dec(sk, c) and accepts m' only when Enc(pk, m'; G(m')) = c.
Whenever Dec(sk, Enc_1(pk, m)) = some m, the re-encryption check succeeds and decT
recovers some m.
Rigidity of T: any plaintext m' accepted by decT re-encrypts strictly to c, and
satisfies P.dec sk c = some m'.
Any ciphertext failing the re-encryption check on its decrypted candidate is rejected by
decT.
FO^⊥ and FO-notbot: Explicit- and Implicit-Rejection KEM Transforms #
Parameter bundle for the HHK17 Fujisaki–Okamoto KEM transforms FO^⊥ and FO-notbot
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.2.1 Fig. 9 and §3.2.2 Fig. 12):
an ExplicitCoinPKE scheme paired with its message-space sampler sampleMsg and shared-key
sampler sampleKey (generalizing the paper's uniform draws from M and K).
- pke : ExplicitCoinPKE PK SK M R CT
Underlying explicit-coin public-key encryption scheme
PKE. - sampleMsg : ProbComp M
Sampler
m ← Mfor encapsulated plaintexts and implicit-rejection seeds. - sampleKey : ProbComp K
Sampler
k ← Kfor shared KEM keys.
Decapsulation with oracle access #
The random-oracle games answer G and H lazily, so their decapsulation oracles run the
decapsulation algorithms with G : M → m R and H : M × CT → m K given as oracles in a
monad m. Both run the T check decTM and add only their rejection policy and H query.
decapsBotM_eq and decapsNotBotM_eq unfold them into explicit oracle calls. The fixed-function
decapsulations decapsBot and decapsNotBot below are these algorithms in the identity monad; with
pure oracles in any lawful monad, the oracle-access versions return them (decapsBotM_pure,
decapsNotBotM_pure).
Explicit-rejection decapsulation Decaps^⊥(pk, sk, c) of FO^⊥ with oracle access to G and
H: returns some (H(m', c)) when decTM accepts m', and none otherwise.
Implicit-rejection decapsulation Decaps-notbot(dk, c) of FO-notbot with oracle access to
G and H: returns H(m', c) when decTM accepts m', and the fallback key
H(dk.fallback, c) otherwise.
decapsBotM as explicit oracle calls: no query when Dec fails; otherwise G(m'), then
H(m', c) exactly when the re-encryption check passes.
decapsNotBotM as explicit oracle calls: H(dk.fallback, c) when Dec fails;
otherwise G(m'), then H(m', c) or H(dk.fallback, c) by the re-encryption
check.
Encapsulation Encaps^⊥(pk) for FO^⊥ = U^⊥ ∘ T with fixed functions G and
H ([HHK17], ePrint 2017/604 (2 Nov 2021), §3.2.1,
Fig. 9): samples m ← sampleMsg, computes c := Enc(pk, m; G(m)), and outputs
(c, H(m, c)).
Explicit-rejection decapsulation Decaps^⊥(pk, sk, c) for FO^⊥ = U^⊥ ∘ T
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.2.1, Fig. 9) with fixed
functions G and H: decapsBotM in the identity monad. It returns some (H(m', c))
when decT accepts m', and none otherwise (decapsBot_eq).
decapsBot returns some (H(m', c)) when decT accepts m', and none otherwise.
Honest recovery for FO^⊥: whenever Dec(sk, Enc_1(pk, m)) = some m, decapsBot returns
some (H(m, Enc_1(pk, m))).
Explicit rejection for FO^⊥: any tampered ciphertext failing the re-encryption check
decapsulates to none.
Key generation Gen-notbot for FO-notbot = U-notbot ∘ T
([HHK17], ePrint 2017/604 (2 Nov 2021), §3.2.2, Fig. 12): generates
(pk, sk) ← pke.keyGen, samples a secret seed s ← sampleMsg, and outputs
(pk, ⟨sk, pk, s⟩).
Implicit-rejection decapsulation for FO-notbot = U-notbot ∘ T
([HHK17], §3.2.2, Figure 12), with fixed functions G and H.
A rejection and an ordinary key query at the fallback seed use the same H(dk.fallback, c).
decapsNotBot returns H(m', c) when decT accepts m', and the fallback key
H(dk.fallback, c) otherwise.
Honest recovery for FO-notbot: whenever Dec(dk.sk, Enc_1(dk.pk, m)) = some m, the
re-encryption check passes and decapsNotBot outputs H(m, Enc_1(dk.pk, m)).
Implicit pseudorandom rejection for FO-notbot: any tampered ciphertext failing the
re-encryption check decapsulates to H(dk.fallback, c).
Pure oracles #
With pure oracles pure ∘ G and pure ∘ H in any lawful monad, the oracle-access decapsulations
return the fixed-function ones.
With pure oracles, decapsBotM is the fixed-function decapsulation decapsBot.
With pure oracles, decapsNotBotM is the fixed-function decapsulation decapsNotBot.