One-pass encryption/decryption
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- cryptography
Línea de trabajo
Comience leyendo las implementaciones de AEAD no verificadas enumeradas en el issue, empezando por aes-gcm, y compare sus pasadas de cifrado y descifrado. Defina la finalización como convertir las implementaciones aplicables a un funcionamiento de una sola pasada y determinar si el soporte reutilizable debe pertenecer al aead crate, teniendo en cuenta la limitación del modo SIV.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently all of the AEAD implementations do two passes over the plaintext/ciphertext when encrypting/decrypting respectively: for encryption, they encrypt the plaintext in the first pass, and authenticate it in the second pass. For decryption, it's vice versa.
A better approach is to pick a number of blocks to operate on in parallel and encrypt/authenticate or authenticate/decrypt in a single pass. This has better cache locality, e.g. when we encrypt data, store the resulting ciphertext, then load it again to do authentication, that is pretty much guaranteed to hit L1 cache when doing it in a single pass (and ideally we could hand off values still stored in e.g. SIMD registers)
This is a tracking issue for converting the implementations of these respective algorithms to be one pass. It also might be good to discuss ways we could have a generic implementation of one pass encryption/decryption in the aead crate (especially one specialized for the non-SIV stream-cipher + universal-hash use case) which can be reused across different algorithm implementations.
-
aes-gcm -
aes-gcm-siv† -
aes-siv† -
chacha20poly1305 -
xsalsa20poly1305
†NOTE: SIV modes by definition cannot support 1-pass encryption (because the first pass generates the synthetic IV, which must be known in advance before encryption can be performed). However, they can support 1-pass decryption, since the IV is known in advance in that case.
- Lenguaje dominante
- Rust
- Estrellas
- 961
- Forks
- 200
- Merge medio
- 2 h 50 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RustCrypto/AEADs
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RustCrypto/AEADs#864 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
RustCrypto/AEADs#765 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
RustCrypto/AEADs#755 · 1 comentario ·
-
ocb3: use parallel-capable APIsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
RustCrypto/AEADs#706 · 1 comentario · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
RustCrypto/AEADs#660 · 7 comentarios ·
Todos los issues de RustCrypto/AEADs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
trailofbits/dylint#2107 ·
Los mantenedores suelen responder en 1 día
-
area:cli bug good first issue priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
rtk-ai/rtk#4289 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Abiertobug requires-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/datafusion-comet#6251 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug false-positive harper-core linting
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Automattic/harper#4471 ·
Los mantenedores suelen responder en 1 día