frodo-kem: Use seeds instead of expanded private/decapsulation keys
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
- 38/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- cryptography
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 130
- Fork
- 63
- Merge medio
- 4g 3h
- PR unite (30g)
- 2
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustCrypto/KEMs
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 12/100
RustCrypto/KEMs#417 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
RustCrypto/KEMs#395 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
RustCrypto/KEMs#389 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
frodo-kem: `Algorithm::encryption_key_from_decryption_key` skips both of the validations its siblings performForse già presa @cipherprofessor l’ha presa 76 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
RustCrypto/KEMs#381 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
RustCrypto/KEMs#346 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RustCrypto/KEMs
Issue simili
-
The new tests repeat each other and one only checks a two-line helperForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertainfra
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
storytold/wordcraft#9405 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
area: ai-assistants documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
storytold/craft-libs#5594 ·
I maintainer di solito rispondono entro 1 giorno
-
available documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Nixitov/Riptide-Native#932 ·
I maintainer di solito rispondono entro 1 giorno