Present the algorithms of a MAC as a memoryless system

Abierto
#399 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.