Present the algorithms of a MAC as a memoryless system
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 56/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- backend-api-design
Direção de pesquisa
Start with src/Commons/Definitions/MAC.lean and inspect the existing MAC.system interface, then read the definitions under src/Commons/Definitions/MAC/ for related reply laws and memoryless-system proofs. Add the proposed algorithms interface, system, reply law, and equality theorem; done means the stated bit-MAC acceptance behavior and theorem are covered.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Background
MAC.system holds one key and answers tag(m) and verify(m, t) under it. A construction that derives its MAC keys itself needs the two algorithms with the key as an argument:
\mathrm{tag}(k,m)\ \mapsto\ \tau\leftarrow\mathrm{mac.tag}\ k\ m,\qquad
\mathrm{verify}(k,m,\tau)\ \mapsto\ \mathrm{mac.verify}\ k\ m\ \tau .
This system keeps no state: each reply is drawn from the algorithm's law at the query. So it is the memoryless system of that reply law, and a router or a program over it has a closed form.
Proposed change
In src/Commons/Definitions/MAC.lean, add the interface MACAlgorithms K M T with the ports tag(key, message) and verify(key, message, tag), and the system MAC.algorithms mac on it. In src/Commons/Definitions/MAC/, add MAC.algorithms.replyLaw and
theorem MAC.algorithms.eq_ofMemoryless (mac : MAC K M T) (q : ℕ) :
MAC.algorithms (budget := q) mac =
TypedSystem.ofMemoryless (MACAlgorithms K M T q) (MAC.algorithms.replyLaw mac)
Acceptance criteria
Take the MAC on bits that tags every message with a fresh fair bit and accepts a tag equal to the key. Its algorithms answer tag(k, m) by a fair bit whatever $k$ and $m$, so two tags of one message are independent draws, and verify(k, m, t) by the point law of t == k.
- 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 78/100
-
fix(rodex): sent mail loses the last character of title and bodyTalvez já em andamento @baphomello assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NatLabRockies/openstudio-mcp#282 ·
Mantenedores costumam responder em até 1 dia
-
type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
siyuan-note/siyuan#21692 ·
Mantenedores costumam responder em até 1 dia