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

Fechada
#462 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Um pull request relacionado já foi integrado.

  • #464 de @MarcIlunga — integrado

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
8/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Domínio
cryptography

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Lean
Estrelas
3
Forks
0
Merge médio
1d 2h
PRs com merge (30d)
159

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de trailofbits/constructive-cryptography

Todas as issues de trailofbits/constructive-cryptography

Issues semelhantes

Mais issues de Cryptography

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.