mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-23 23:55:15 +08:00
recover_pk: better warning if OpenSSL doesn't provide required curve (Fedora I'm looking at you)
cf https://bugzilla.redhat.com/show_bug.cgi?id=1019390#c25
This commit is contained in:
parent
1a408d62a5
commit
dee65c8036
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ def guess_curvename(signature):
|
|||
|
||||
def recover(data, signature, curvename, alghash=None):
|
||||
recovered = set()
|
||||
curve = sslcrypto.ecc.get_curve(curvename)
|
||||
try:
|
||||
curve = sslcrypto.ecc.get_curve(curvename)
|
||||
except ValueError:
|
||||
print("Warning, your OpenSSL doesn't provide support for curve", curvename)
|
||||
return recovered
|
||||
recoverable = len(signature) % 1 == 1
|
||||
if (recoverable):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue