ecdsa.keys.VerifyingKey.verify_digest should fail for CurveEdTw
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- cryptography
Direzione di ricerca
Start at ecdsa.keys.VerifyingKey.verify_digest and compare its handling of CurveEdTw with the verify usage shown in the issue. Make the unsupported call fail explicitly with an understandable error, and verify that CurveEdTw users are directed toward verify rather than verify_digest.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The verify_digest should explicitly fail if used with CurveEdTw, otherwise it leads to very hard to understand error:
AttributeError: 'PublicKey' object has no attribute 'order'
By the way, I was trying to verify the signature which was created for a message hashed with blake2b, and the correct usage is this (ie not to use verify_digest). But I had to study the code to understand the mistake.
pk: VerifyingKey = VerifyingKey.from_string(
public_key,
curve=Ed25519,
)
hash_object = blake2b(digest_size=32)
hash_object.update(message)
return pk.verify(
signature=signature,
data=hash_object.digest()
)
- Lingua principale
- Python
- Stelle
- 973
- Fork
- 343
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 tlsfuzzer/python-ecdsa
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
tlsfuzzer/python-ecdsa#381 ·
-
feature help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
tlsfuzzer/python-ecdsa#348 · 1 commento ·
-
bug help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
tlsfuzzer/python-ecdsa#341 · 1 commento ·
-
Add type annotations Apertamaintenance
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tlsfuzzer/python-ecdsa#340 · 4 commenti · 1 reazione ·
-
remove `hmac_compat` Apertamaintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
tlsfuzzer/python-ecdsa#316 ·
Tutte le issue di tlsfuzzer/python-ecdsa
Issue simili
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
simonw/sqlite-utils#872 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100