HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/cryptography/__pycache__/utils.cpython-310.pyc
o

�hU�@s�ddlmZddlZddlZddlZddlZddlZGdd�de�ZeZ	eZ
eZeZeZ
eZd*dd�Zd*d
d�Zd+d,dd�ZGdd�de�ZGdd�d�ZGdd�dej�Z	d+d-d!d"�Zd.d&d'�ZGd(d)�d)ej�ZdS)/�)�annotationsNc@�eZdZdS)�CryptographyDeprecationWarningN��__name__�
__module__�__qualname__�r	r	�E/usr/local/CyberCP/lib/python3.10/site-packages/cryptography/utils.pyr�r�name�str�value�bytes�return�NonecCst|t�st|�d���dS)Nz must be bytes)�
isinstancer�	TypeError�rrr	r	r
�_check_bytess
�rcCs,zt|�WdStyt|�d���w)Nz must be bytes-like)�
memoryviewrrr	r	r
�_check_byteslike$s
�r�integer�int�length�
int | NonecCs0|dkrtd��|�|p|��ddpdd�S)Nrzlength argument can't be 0����big)�
ValueError�to_bytes�
bit_length)rrr	r	r
�int_to_bytes+s
�r#c@r)�InterfaceNotImplementedNrr	r	r	r
r$3rr$c@seZdZddd�ZdS)	�_DeprecatedValuer�object�messager
cCs||_||_||_dS�N)rr'�
warning_class)�selfrr'r)r	r	r
�__init__8s
z_DeprecatedValue.__init__N)rr&r'r
)rrrr+r	r	r	r
r%7sr%csFeZdZd�fdd�Zdd	d
�Zdd
d�Zddd�Zddd�Z�ZS)�_ModuleWithDeprecations�module�types.ModuleTypecst��|j�||jd<dS�N�_module)�superr+r�__dict__)r*r-��	__class__r	r
r+?sz _ModuleWithDeprecations.__init__�attrr
rr&cCs4t|j|�}t|t�rtj|j|jdd�|j}|S�N�)�
stacklevel)	�getattrr0rr%�warnings�warnr'r)r�r*r5�objr	r	r
�__getattr__Cs

z#_ModuleWithDeprecations.__getattr__rrcCst|j||�dSr()�setattrr0)r*r5rr	r	r
�__setattr__Jsz#_ModuleWithDeprecations.__setattr__cCs:t|j|�}t|t�rtj|j|jdd�t|j|�dSr6)	r9r0rr%r:r;r'r)�delattrr<r	r	r
�__delattr__Ms
z#_ModuleWithDeprecations.__delattr__�typing.Sequence[str]cCsdgt|j��Sr/)�dirr0�r*r	r	r
�__dir__Tsz_ModuleWithDeprecations.__dir__)r-r.)r5r
rr&)r5r
rr&rr)r5r
rr)rrC)	rrrr+r>r@rBrF�
__classcell__r	r	r3r
r,>s


r,r&�module_namer'r)�
type[Warning]�
str | NonecCsJtj|}t|t�st|�tj|<}t|||�}|dur#t|||�|Sr()�sys�modulesrr,r%r?)rrHr'r)rr-�dvr	r	r
�
deprecatedXs

rN�func�typing.Callable�propertycs*d����t��d���fdd�}t|�S)N�_cached_�instancer&cs0t|���}|�ur|S�|�}t|�|�|Sr()r9r?)rS�cache�result��cached_namerO�sentinelr	r
�innermszcached_property.<locals>.inner)rSr&)r&rQ)rOrYr	rVr
�cached_propertyis
rZc@s eZdZddd�Zddd�ZdS)	�Enumrr
cCs d|jj�d|j�d|j�d�S)N�<�.z: �>)r4r�_name_�_value_rEr	r	r
�__repr__{s z
Enum.__repr__cCs|jj�d|j��S)Nr])r4rr_rEr	r	r
�__str__~szEnum.__str__N)rr
)rrrrarbr	r	r	r
r[zs
r[)rr
rrrrr()rrrrrr)rr&rHr
r'r
r)rIrrJrr%)rOrPrrQ)�
__future__r�enumrK�types�typingr:�UserWarningr�DeprecatedIn36�DeprecatedIn37�DeprecatedIn40�DeprecatedIn41�DeprecatedIn42�DeprecatedIn43rrr#�	Exceptionr$r%�
ModuleTyper,rNrZr[r	r	r	r
�<module>s.

�