Group key derivation as an instance of the general key-derivation game #
PrimeOrderGroupFamily.SecureKDF ([BS23], Section 11.5.2, Attack Game 11.3, p. 448, and
Definition 11.5, p. 449) is the group-specialized key-derivation assumption used by Hashed ElGamal
(CslibFrontier/Crypto/Computational/ElGamal.lean): a distinguisher receives the group description
d ← setup n, two independent group elements a • g and b • g, and either
H (d, F.encode d (c • g)) for an independent uniform c or an independent uniform msgLen n-bit
word.
This module shows (secureKDF_iff_keyDerivation) that F.SecureKDF setup H msgLen is an instance
of KeyDerivation.Secure: the secret F.kdfSecret setup n packages a random F.DDHInput drawing
d ← setup n and independent uniform a, b, c (via F.ddhRandomTupleLaw), the public side
information is DDHInput.toCDHInput, the derived key is
fun x => H (x.groupParameters, F.encode x.groupParameters x.candidateShared), and the ideal key
law is BitString.uniformList (msgLen n). Combined with
PrimeOrderGroupFamily.secureKDF_linearHashKDF
(CslibFrontier/Crypto/Computational/ElGamal/KDF.lean), this gives an instance of
KeyDerivation.Secure with no hardness assumption under F.LinearHashKDFConditions, via the
leftover hash lemma.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.kdfSecret: the secret distribution drawingd ← setup nand a random DDH triple viaF.ddhRandomTupleLaw das anF.DDHInput.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.secureKDF_iff_keyDerivation:F.SecureKDF setup H msgLenis equivalent toKeyDerivation.SecureforF.kdfSecret setup.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 11.5.2 (Attack Game 11.3 and Definition 11.5, pp. 448–449).
The law of the secret: d ← setup n and a random DDH triple via F.ddhRandomTupleLaw d.
SecureKDF is KeyDerivation.Secure for the secret kdfSecret, the CDH input as public
information, and the key H (d, encode w).