mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Merge branch 'master' into 46-docstrings
This commit is contained in:
@@ -246,7 +246,7 @@ class Cryptographer:
|
||||
raise ValueError("Wrong return type. Return type must be 'str' or 'bytes'")
|
||||
|
||||
if not isinstance(sk, ec.EllipticCurvePrivateKey):
|
||||
logger.error("Wrong public key.")
|
||||
logger.error("The value passed as sk is not a private key (EllipticCurvePrivateKey).")
|
||||
return None
|
||||
|
||||
else:
|
||||
@@ -274,7 +274,7 @@ class Cryptographer:
|
||||
"""
|
||||
|
||||
if not isinstance(pk, ec.EllipticCurvePublicKey):
|
||||
logger.error("Wrong public key.")
|
||||
logger.error("The value passed as pk is not a public key (EllipticCurvePublicKey).")
|
||||
return False
|
||||
|
||||
if isinstance(signature, str):
|
||||
|
||||
Reference in New Issue
Block a user