CasperSecurity

Current Path : /usr/lib/python3/dist-packages/cryptography/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/cryptography/__pycache__/utils.cpython-310.pyc

o

g�e`�@s(ddlZddlZddlZddlZddlZddlZGdd�de�ZeZeZ	eZ
dedefdd�Z
dedefdd	�Zdefd
d�Zdd
�Zdd�Zd(dedejedefdd�ZGdd�de�Zdd�Zdd�dd�ZGdd�de�ZGdd �d e�Zd!d"�Zd#d$�Zeejed%e
�Z Gd&d'�d'ej!�Z!dS))�Nc@�eZdZdS)�CryptographyDeprecationWarningN��__name__�
__module__�__qualname__�rr�4/usr/lib/python3/dist-packages/cryptography/utils.pyr�r�name�valuecCst|t�std�|���dS)Nz{} must be bytes)�
isinstance�bytes�	TypeError�format�rrrrr	�_check_bytess
�rcCs,zt|�WdStytd�|���w)Nz{} must be bytes-like)�
memoryviewrrrrrr	�_check_byteslike!s
�rcst�fdd��S)Ncs
t|��S�N)�getattr��self�rrr	�<lambda>)s
z$read_only_property.<locals>.<lambda>)�propertyrrrr	�read_only_property(�rcsdd��fdd�
}|S)NF��check_annotationscst�||d���|�|S�Nr��verify_interface�register��klassr��ifacerr	�register_decorator-s
z.register_interface.<locals>.register_decoratorr)r'r(rr&r	�register_interface,sr)csdd���fdd�
}|S)NFrcs �rt�||d���|�|Sr r!r$�r'�	predicaterr	r(6s
z1register_interface_if.<locals>.register_decoratorr)r+r'r(rr*r	�register_interface_if5sr,�integer�length�returncCs |�|p
|��ddp
dd�S)N����big)�to_bytes�
bit_length)r-r.rrr	�int_to_bytes?s�r6c@r)�InterfaceNotImplementedNrrrrr	r7Er
r7cCst�dd�|j��D��S)NcSsg|]
}|jtjjd��qS))�
annotation)�replace�inspect�	Parameter�empty)�.0�paramrrr	�
<listcomp>Ks��z$strip_annotation.<locals>.<listcomp>)r:�	Signature�
parameters�values)�	signaturerrr	�strip_annotationIs
��rDFrcCs�|jD]D}t||�std�||���tt||�tj�rqt�	t||��}t�	t||��}|r3||k}nt
|�t
|�k}|sGtd�||||���qdS)Nz{} is missing a {!r} methodzK{}.{}'s signature differs from the expected. Expected: {!r}. Received: {!r})�__abstractmethods__�hasattrr7rr
r�abc�abstractpropertyr:rCrD)r'r%r�method�sig�actual�okrrr	r"Rs&


�
���r"c@seZdZdd�ZdS)�_DeprecatedValuecCs||_||_||_dSr)r�message�
warning_class)rrrNrOrrr	�__init__is
z_DeprecatedValue.__init__N)rrrrPrrrr	rMhsrMc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�_ModuleWithDeprecationscCs||jd<dS�N�_module)�__dict__)r�modulerrr	rPpsz _ModuleWithDeprecations.__init__cCs4t|j|�}t|t�rtj|j|jdd�|j}|S�N�)�
stacklevel)	rrSr
rM�warnings�warnrNrOr�r�attr�objrrr	�__getattr__ss

z#_ModuleWithDeprecations.__getattr__cCst|j||�dSr)�setattrrS)rr\rrrr	�__setattr__zsz#_ModuleWithDeprecations.__setattr__cCs:t|j|�}t|t�rtj|j|jdd�t|j|�dSrV)	rrSr
rMrYrZrNrO�delattrr[rrr	�__delattr__}s
z#_ModuleWithDeprecations.__delattr__cCsdgt|j�SrR)�dirrSrrrr	�__dir__�rz_ModuleWithDeprecations.__dir__N)rrrrPr^r`rbrdrrrr	rQosrQcCs.tj|}t|t�st|�tj|<t|||�Sr)�sys�modulesr
rQrM)r�module_namerNrOrUrrr	�
deprecated�s


�rhcs(d����t�����fdd�}t|�S)Nz
_cached_{}cs0t|���}|�ur|S�|�}t|�|�|Sr)rr_)�instance�cache�result��cached_name�func�sentinelrr	�inner�szcached_property.<locals>.inner)r�objectr)rnrprrlr	�cached_property�s
rrz8int_from_bytes is deprecated, use int.from_bytes insteadc@seZdZdd�Zdd�ZdS)�EnumcCs d|jj�d|j�d|j�d�S)N�<�.z: �>)�	__class__r�_name_�_value_rrrr	�__repr__�s z
Enum.__repr__cCs|jj�d|j��S)Nru)rwrrxrrrr	�__str__�szEnum.__str__N)rrrrzr{rrrr	rs�srsr)"rG�enumr:re�typingrY�UserWarningr�PersistentlyDeprecated2017�PersistentlyDeprecated2019�DeprecatedIn34�strrrrrr)r,�int�Optionalr6�	Exceptionr7rDr"rqrMrQrhrr�
from_bytesr�int_from_bytesrsrrrr	�<module>s<	
		�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY