Add ideal-cipher Davies–Meyer PRF and single/multi-root context replacement
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
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), adaptive2r / |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.leanand add consumer tests +#print axiomschecks insrc/Tests/DaviesMeyer.lean.
Acceptance criteria
DaviesMeyer,CipherContext, andCipherMultiContextreuse theTypedSystemsampling and key-guessing laws directly without duplicating local copies.src/Tests/DaviesMeyer.leaninstantiates XOR onBool, finiteAddGroup, 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
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de trailofbits/constructive-cryptography
-
RFC: Budget-free dependent Interface, cumulative CR18 Systems/Converters, and endomorphism FiltersAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#504 ·
Mantenedores costumam responder em até 1 dia
-
needs-format
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#471 ·
Mantenedores costumam responder em até 1 dia
-
Exclude all approximate ideal witnesses with separating testsTalvez já em andamento @MarcIlunga assumiu há 1 dia. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#449 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#430 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#429 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de trailofbits/constructive-cryptography
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
lidofinance/validator-ejector#233 ·
Mantenedores costumam responder em até 1 dia
-
area/Driver_-_cpp-rs-driver bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
scylladb/cpp-rs-driver#542 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
latchset/kryoptic#600 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
good first issue priority:high track:crypto
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
`libcrux-aead` fails to compile when referenced with `default-features = false`Talvez já em andamento @jschneider-bensch assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia