frodo-kem: Use seeds instead of expanded private/decapsulation keys
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
- 38/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- cryptography
Línea de trabajo
Start with frodo-kem/src/kem.rs, especially the key-generation path around line 116, then inspect the KeyInit and KeyExport implementations for DecapsulationKey and the KemSizes trait. Compare the seed-oriented behavior of ml-kem and determine how parameter-specific seed sizes should be represented. The work is done when seed-based initialization and export are defined, the existing expanded-key path is deprecated or handled deliberately, and serialized key-format implications are resolved.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
frodo-kem currently requires the hazmat feature to work with seeds, and by default only generates, loads, and saves the expanded private key. By contrast, ml-kem primarily loads and saves the seed rather than the expanded key.
Would you be open to a PR for some of this that brings frodo-kem closer to ml-kem's design; or do you recommend advanced users stick to the hazmat-gated K::default().generate_keypair_from_seed(&mut seed.clone())?
Using same approach as ml-kem would be a breaking change to the serialized key format, and could be achieved by:
- adding a seed:
Option<...>field ofKEY_SEED_SIZEbytes tofrodo_kem::kem::DecapsulationKey - keeping the seed in
Generate(it's currently discarded infrodo-kem/src/kem.rs:116) - refactoring
KeyInit/KeyExportto operate on the seed, not the expanded private key - deprecating the current expanded
TryKeyInitpath - the main complication is that frodo-kem's seed size differs per parameter set (
len_s + len_seedSE + len_z), soKemSizeswould need aSeedSizeassociated type rather than a single fixedSeedtype.
- Lenguaje dominante
- Rust
- Estrellas
- 130
- Forks
- 63
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 2
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
- 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/KEMs
-
Dificultad 4/5 3-5 días Aptitud para principiantes 12/100
RustCrypto/KEMs#417 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
RustCrypto/KEMs#395 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
RustCrypto/KEMs#389 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
frodo-kem: `Algorithm::encryption_key_from_decryption_key` skips both of the validations its siblings performPosiblemente ocupada @cipherprofessor la tomó hace 76 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
RustCrypto/KEMs#381 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
RustCrypto/KEMs#346 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de RustCrypto/KEMs
Issues similares
-
The new tests repeat each other and one only checks a two-line helperQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoinfra
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
storytold/wordcraft#9405 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
area: ai-assistants documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BetaBots-LLC/latticegate#17 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
storytold/craft-libs#5594 ·
Los mantenedores suelen responder en 1 día
-
available documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Nixitov/Riptide-Native#932 ·
Los mantenedores suelen responder en 1 día