cryptography: fix signature of ECDSA (#4049)

This commit is contained in:
Markus Wamser
2020-05-21 03:58:21 +02:00
committed by GitHub
parent d11da2c5d1
commit 960c4eb42d

View File

@@ -183,7 +183,7 @@ class EllipticCurveSignatureAlgorithm(metaclass=ABCMeta):
class ECDH(object): ...
class ECDSA(EllipticCurveSignatureAlgorithm):
def __init__(self, algorithm: HashAlgorithm): ...
def __init__(self, algorithm: Union[HashAlgorithm, Prehashed]): ...
@property
def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...