cryptography: add signature of Prehashed (#4048)

* cryptography: add signature of Prehashed

* cryptography: modify signature of Prehashed

mark internal attributes as undocumented
add public attribute digest_size

* cryptography: modify signature of Prehashed

drop Optional from argument of __init__
This commit is contained in:
Markus Wamser
2020-05-26 00:36:54 +02:00
committed by GitHub
parent 4daf0df929
commit 1996361adc

View File

@@ -1,6 +1,16 @@
from typing import Tuple
from typing import Optional, Tuple
from cryptography.hazmat.primitives.hashes import HashAlgorithm
def decode_dss_signature(signature: bytes) -> Tuple[int, int]: ...
def encode_dss_signature(r: int, s: int) -> bytes: ...
class Prehashed(object): ...
class Prehashed(object):
_algorithm: HashAlgorithm # undocumented
_digest_size: int # undocumented
def __init__(self, algorithm: HashAlgorithm) -> None: ...
digest_size: int