Enforce input limits for Hashes
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- cryptography
Direzione di ricerca
Start by reading core::traits::Hash and the supported hash implementations in src/*.rs; look up each algorithm’s specified input limit. Check whether the one-shot and do_final() APIs can report limit errors, and whether do_update() needs the same pathway. Done means boundary tests show input below the limit succeeds and input exceeding it returns an error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
All hash functions (SHA2, SHA3, SM3, etc) have a specified input limit beyond which output can start repeating. Currently our core::traits::Hash trait does not have any way to return errors.
Task
- Look up the specified input limits for each supported hash function.
- Add an error pathway to at least the one-shot,
do_final()APIs, and maybe also thedo_update()APIs incore::traits::Hash. - Add unit tests (inside the src/*.rs file) that absorb some input, reach inside and set the counter to very close to the limit, absorb more input that does not exceed the limit (should pass), then absorb input that does exceed the limit (should throw error).
- Lingua principale
- Rust
- Stelle
- 25
- Fork
- 18
- Merge medio
- 14g 10h
- PR unite (30g)
- 5
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
-
Improve docs in FactoriesForse già presa @pollychen-lab l’ha presa 5 giorni fa. 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 2 giorni
-
good first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
bcgit/bc-rust#163 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
API Gap: MAC's with noncesAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 2 giorni
-
documentation good first issue refactor
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di bcgit/bc-rust
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
zcashlabs/thus-spoke-zakura#153 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
topgrade-rs/topgrade#2395 ·
I maintainer di solito rispondono entro 1 giorno
-
app bug windows-os
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
matrix-org/matrix-rust-sdk#7217 ·
I maintainer di solito rispondono entro 1 giorno
-
Improve sublime text syntaxApertaeditor good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
funnyboy-roks/inq#54 ·