Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Block "4"

Offen
#175 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.


Image

Inspired by:

https://github.com/openssl/openssl/pull/33369

Vorherrschende Sprache
Rust
Sterne
25
Forks
18
Ø Merge
56 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bcgit/bc-rust

Alle Issues in bcgit/bc-rust

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.