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

Abierto
#462 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Área
cryptography

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de Cryptography

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.