diff --git a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi index 136d270db..610a517f2 100644 --- a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi +++ b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi @@ -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