Block "4"
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- cryptography, security
Direzione di ricerca
Start with core::key_material and the private key loaders for the asymmetric key objects; the issue does not name specific files or tests. First inspect how KeyMaterial currently rejects all zero keys and how loaders handle raw key bytes. Done means a standalone entropy check is exposed and applied to the described key types and loaders, with hazardous operations required for keys that fail the chosen threshold.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
As a lesson-learned from the eMudhra event, sometimes a handle, index, string or fill pattern gets stored where a private scalar or
seed belongs yields a valid keypair with a guessable private key.
Our KeyMaterial object already rejects all-zero keys (unless you load it via a do_hazardous_operations() closure). This ticket asks us to do better.
For example, if loading a symmetric key into a full-entropy key type (KeyType::CryptographicRandom, ::Seed, ::MACKey, ::SymmetricCipherKey), then we should require do_hazardous_operations() if more than 50% of bytes are 0x00. Or maybe we could find a really light statistical entropy test and require do_hazardous_operations() if the key has < 1/2 of the entropy that it's supposed to (ie entropy < 1/2 of its length). (Depending on the false-positive rate of the statistical entropy test we find, we can play with "1/2" to reduce the false positive rate)
We want to protect more than just symmetric keys, so whatever entropy test we add should be exposed by core::key_material as a standalone function and also used by the private key loaders of all the asymmetric private key objects to look at the raw bytes of the private key before parsing it into its structured form (ie lattic vector), or integer.
Inspired by:
- Lingua principale
- Rust
- Stelle
- 25
- Fork
- 18
- Merge medio
- 56m
- PR unite (30g)
- 1
Preparare l'ambiente
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 bcgit/bc-rust
-
Docs refactor: use `#[cfg(doc)]`Forse già presa @Sweesz l’ha presa oggi. Apertadocumentation good first issue help wanted refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Improve docs in FactoriesForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertadocumentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
bcgit/bc-rust#161 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Total re-design of Factory?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
TODO before 1.0.0Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bcgit/bc-rust
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
yunfie-twitter/Palleria#474 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
servo/rust-smallvec#827 ·
I maintainer di solito rispondono entro 1 giorno
-
bug tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno