o )%a@sddlZddlmZddlmZmZmZmZmZddl m Z de dej e e ffddZd e d e de fd d ZGd ddeZdS)N)utils) DERReaderINTEGERSEQUENCE encode_derencode_der_integer)hashes signaturereturncCsVt|t}|t}|t}||fWdS1s$wYdSN)rread_single_elementr read_elementr as_integer)r seqrsrQ/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/utils.pydecode_dss_signatures $rrrcCs ttttt|ttt|Sr )rrrr)rrrrrencode_dss_signatures   rc@s&eZdZdejfddZedZdS) Prehashed algorithmcCs&t|tjs td||_|j|_dS)Nz#Expected instance of HashAlgorithm.) isinstancer HashAlgorithm TypeError _algorithm digest_size _digest_size)selfrrrr__init__#s  zPrehashed.__init__rN) __name__ __module__ __qualname__rrrrread_only_propertyrrrrrr"sr)typing cryptographyrcryptography.hazmat._derrrrrrcryptography.hazmat.primitivesrbytesTupleintrrobjectrrrrrs