U q`@s|ddlZddlmZddlmZmZmZmZmZddl m Z e ej e e fdddZe e e dd d ZGd d d eZdS) N)utils) DERReaderINTEGERSEQUENCE encode_derencode_der_integer)hashes) signaturereturnc CsJt|t2}|t}|t}||fW5QRSQRXdSN)rZread_single_elementrZ read_elementrZ as_integer)r seqrsrV/tmp/pip-target-nv4zd3e_/lib/python/cryptography/hazmat/primitives/asymmetric/utils.pydecode_dss_signaturesr)r rr cCs ttttt|ttt|Sr )rrrr)r rrrrencode_dss_signatures   rc@s&eZdZejdddZedZdS) Prehashed) algorithmcCs&t|tjstd||_|j|_dS)Nz#Expected instance of HashAlgorithm.) isinstancer HashAlgorithm TypeError _algorithm digest_size _digest_size)selfrrrr__init__#s zPrehashed.__init__rN) __name__ __module__ __qualname__rrrrZread_only_propertyrrrrrr"sr)typingZ cryptographyrZcryptography.hazmat._derrrrrrZcryptography.hazmat.primitivesrbytesTupleintrrobjectrrrrrs