o
    VÌh  ã                   @  sB   d dl mZ d dlmZ d dlmZ ejZejZG dd„ dƒZdS )é    )Úannotations)Úasn1)Úhashesc                   @  s$   e Zd Zd
dd„Zeddd„ƒZd	S )Ú	PrehashedÚ	algorithmúhashes.HashAlgorithmc                 C  s&   t |tjƒs
tdƒ‚|| _|j| _d S )Nz#Expected instance of HashAlgorithm.)Ú
isinstancer   ÚHashAlgorithmÚ	TypeErrorÚ
_algorithmÚdigest_sizeÚ_digest_size)Úselfr   © r   úƒ/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/cryptography/hazmat/primitives/asymmetric/utils.pyÚ__init__   s   zPrehashed.__init__ÚreturnÚintc                 C  s   | j S )N)r   )r   r   r   r   r      s   zPrehashed.digest_sizeN)r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__r   Úpropertyr   r   r   r   r   r      s    
r   N)	Ú
__future__r   Ú"cryptography.hazmat.bindings._rustr   Úcryptography.hazmat.primitivesr   Údecode_dss_signatureÚencode_dss_signaturer   r   r   r   r   Ú<module>   s   