Add ideal-cipher Davies–Meyer PRF and single/multi-root context replacement

Ouverte
#462 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
8/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Domaine
cryptography

Piste de recherche

Start by reading the existing TypedSystem sampling and key-guessing laws the acceptance criteria require reuse of, plus src/Commons.lean for how modules are exported. Then read the src/Tests/ tree for the consumer-test and #print axioms pattern, since src/Tests/DaviesMeyer.lean must instantiate XOR on Bool, AddGroup, and both context-replacement theorems. Done means lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh and Mathlib linters pass with zero warnings. This is proof engineering across three new files, not a first-timer task.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

needs-format

Background

Ideal-cipher compression-function proofs (Boneh–Shoup Theorem 8.5, Davies–Meyer PRF) and multi-user ideal-cipher constructions (#14, #237) need a reusable tweakable ideal-cipher model, a planting involution preserving the uniform cipher marginal, adaptive PRF security 2r / |State|, and generic single-root and multi-root context-replacement theorems sharing one public ideal cipher.

Proposed change

  • Add src/Commons/Schemes/Cipher/DaviesMeyer.lean: tweakable ideal-cipher interfaces and systems (CipherFamily, CipherQuery, cipherReply, CipherInterface, cipherSystem, idealCipher), planting involution (plant, exchange, exchangeEquiv, plant_uniform), adaptive 2r / |State| PRF security (chainingCipherPRF_security, chainingCipherPRF_addGroup_security), and exact reply-presentation transport (cipherReplyPresentation_real, cipherReplyPresentation_ideal).
  • Add src/Commons/Schemes/Cipher/Context.lean: single-root hidden-key replacement inside an arbitrary trace-local cipher-dependent context (RespectsCalls, transcript_ratio, security).
  • Add src/Commons/Schemes/Cipher/MultiContext.lean: users-slot hybrid replacement sharing one ideal cipher with no distinct-key hypothesis (selected_respectsCalls, transcript_ratio, security).
  • Export the modules from src/Commons.lean and add consumer tests + #print axioms checks in src/Tests/DaviesMeyer.lean.

Acceptance criteria

  • DaviesMeyer, CipherContext, and CipherMultiContext reuse the TypedSystem sampling and key-guessing laws directly without duplicating local copies.
  • src/Tests/DaviesMeyer.lean instantiates XOR on Bool, finite AddGroup, single-root context replacement, and multi-root context replacement, and audits axioms.
  • lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh, and Mathlib standard linters pass with 0 warnings.

Advances #14, #237.

Langage dominant
Lean
Étoiles
3
Forks
0
Merge moyen
1 j 7 h
PR mergées (30 j)
123

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de trailofbits/constructive-cryptography

Toutes les issues de trailofbits/constructive-cryptography

Issues similaires

Plus d'issues Cryptography

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.