Present the algorithms of a MAC as a memoryless system

Aperta
#399 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Lean
Stelle
3
Fork
0
Merge medio
1g 7h
PR unite (30g)
123

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di trailofbits/constructive-cryptography

Tutte le issue di trailofbits/constructive-cryptography

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.