Provable security notes / XII

Where proofs stop

A security proof identifies the algorithms, distributions, and observable interfaces an implementation must realize.

Provable security makes a claim precise enough to prove: it specifies the adversary’s information, permitted actions, and resources. Applying that theorem to a deployed system requires an argument that the implementation realizes those interfaces, including any modeled leakage.

Random-oracle boundary

A random-oracle proof gives all parties access to an ideal random function through the specified query interface. A concrete hash function has a fixed public algorithm whose algebraic structure and implementation behavior are also available to the adversary.

Common gaps

Encodings and domain separation determine which protocol objects are hashed to distinct inputs; an ambiguity can undermine the construction even with an ideal oracle. Length extension and other structural properties of concrete hashes require a separate instantiation analysis. Cross-protocol reuse must preserve the distinctions assumed by each proof.

Side channels

Basic security games expose specified values such as public keys, challenge ciphertexts, signatures, allowed oracle replies, and \(\bot\). Implementations can additionally expose timing, memory access patterns, power traces, logs, exceptions, and network errors. A leakage-aware theorem specifies which of these observations the adversary receives.

When the implemented rejection path exposes extra information, a simulation argument can transfer the CCA theorem: generate those additional observations from the adversary’s modeled view and bound any simulation error. If such a simulation does not establish the claimed bound, security must be analyzed for the richer interface.

Nonce and randomness failure

Randomized algorithms sample coins from a specified distribution; independent samples can coincide, and the proof can account for those collisions. A broken generator that repeats or biases coins changes that distribution. Nonce-based schemes often impose a different condition: uniqueness of the nonce for each key, enforced by the caller rather than guaranteed by random sampling.

Failure Consequence
Reused stream nonce under the same key Reveals the XOR of plaintexts masked by the repeated keystream.
Reused Schnorr nonce under the same key, with distinct challenges Reveals the signing key by \(x=(s-s')(c-c')^{-1}\bmod q\).
Biased padding randomness May make RSA encodings searchable.
Reused KEM coins under the same public key Repeats the encapsulation and key when encapsulation is deterministic given its coins.

Malformed ciphertext behavior

CCA and KEM definitions prescribe an output for every ciphertext query. Explicit rejection returns \(\bot\); implicit rejection derives a fallback key according to the scheme. Matching these mathematical outputs and controlling secret-dependent leakage preserves the interface used by the proof.

Two rejection paths

If a hybrid decryptor reports “KEM invalid” and “DEM tag invalid” separately, an adversary learns which layer failed. A proof that exposes only one symbol \(\bot\) does not automatically cover that behavior.

Multi-user and multi-session systems

A multi-user or multi-session theorem accounts for all keys, sessions, and target choices available to the adversary. A reduction that guesses one of \(u\) targets introduces a factor \(u\) in the probability bound; a tighter theorem may avoid that particular loss. The deployment estimate follows the applicable reduction and its total query budget.

Final rule

A proof establishes a conditional guarantee. Implementation verification connects that guarantee to the real system by checking the specified inputs, sampling distributions, rejection behavior, leakage model, key separation, and resource limits.

Source note

The boundary issues here should be read together with the definitions and construction transforms in Smart’s Cryptography Made Simple, Chapters 11 and 16. The chapters define the abstract games and public-key transforms; this note records the places where deployed systems must still match those abstractions.