Present the algorithms of a MAC as a memoryless system

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

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

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

  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 Backend & API Design

Receba novas issues na sua caixa de entrada

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