HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/cryptography/__pycache__/utils.cpython-310.pyc
o

�N�g��@s�ddlmZddlZddlZddlZddlZddlZGdd�de�ZeZ	eZ
eZeZeZ
d/dd�Zd/d
d�Zd0d1dd�Zd2dd�ZGdd�de�ZGdd�d�ZGdd�dej�Z	d0d3d&d'�Zd4d+d,�ZGd-d.�d.ej�ZdS)5�)�annotationsNc@�eZdZdS)�CryptographyDeprecationWarningN��__name__�
__module__�__qualname__�r	r	�F/opt/saltstack/salt/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 | NonecCs |�|p
|��ddp
dd�S)N����big)�to_bytes�
bit_length)rrr	r	r
�int_to_bytes*s�r"�obj�
typing.Any�tuple[typing.Any, int]cCs.ddlm}|j�|�}|t|j�d|��fS)Nr)�_opensslZ	uintptr_t)Z"cryptography.hazmat.bindings._rustr&Zffi�from_bufferr�cast)r#r&�bufr	r	r
�_extract_buffer_length0sr*c@r)�InterfaceNotImplementedNrr	r	r	r
r+7rr+c@seZdZddd�ZdS)	�_DeprecatedValuer�object�messager
cCs||_||_||_dS�N)rr.�
warning_class)�selfrr.r0r	r	r
�__init__<s
z_DeprecatedValue.__init__N)rr-r.r
)rrrr2r	r	r	r
r,;sr,csFeZdZd�fdd�Zdd	d
�Zdd
d�Zddd�Zddd�Z�ZS)�_ModuleWithDeprecations�module�types.ModuleTypecst��|j�||jd<dS�N�_module)�superr2r�__dict__)r1r4��	__class__r	r
r2Csz _ModuleWithDeprecations.__init__�attrr
rr-cCs4t|j|�}t|t�rtj|j|jdd�|j}|S�N�)�
stacklevel)	�getattrr7rr,�warnings�warnr.r0r�r1r<r#r	r	r
�__getattr__Gs

z#_ModuleWithDeprecations.__getattr__rrcCst|j||�dSr/)�setattrr7)r1r<rr	r	r
�__setattr__Nsz#_ModuleWithDeprecations.__setattr__cCs:t|j|�}t|t�rtj|j|jdd�t|j|�dSr=)	r@r7rr,rArBr.r0�delattrrCr	r	r
�__delattr__Qs
z#_ModuleWithDeprecations.__delattr__�typing.Sequence[str]cCsdgt|j��Sr6)�dirr7�r1r	r	r
�__dir__Xsz_ModuleWithDeprecations.__dir__)r4r5)r<r
rr-)r<r
rr-rr)r<r
rr)rrI)	rrrr2rDrFrHrL�
__classcell__r	r	r:r
r3Bs


r3r-�module_namer.r0�
type[Warning]�
str | NonecCsJtj|}t|t�st|�tj|<}t|||�}|dur#t|||�|Sr/)�sys�modulesrr3r,rE)rrNr.r0rr4Zdvr	r	r
�
deprecated\s

rS�func�typing.Callable�propertycs*d����t��d���fdd�}t|�S)NZ_cached_�instancer-cs0t|���}|�ur|S�|�}t|�|�|Sr/)r@rE)rW�cache�result�Zcached_namerT�sentinelr	r
�innerqszcached_property.<locals>.inner)rWr-)r-rV)rTr\r	rZr
�cached_propertyms
r]c@s eZdZddd�Zddd�ZdS)	�Enumrr
cCs d|jj�d|j�d|j�d�S)N�<�.z: �>)r;r�_name_�_value_rKr	r	r
�__repr__s z
Enum.__repr__cCs|jj�d|j��S)Nr`)r;rrbrKr	r	r
�__str__�szEnum.__str__N)rr
)rrrrdrer	r	r	r
r^~s
r^)rr
rrrrr/)rrrrrr)r#r$rr%)rr-rNr
r.r
r0rOrrPrr,)rTrUrrV)Z
__future__r�enumrQ�types�typingrA�UserWarningrZDeprecatedIn36ZDeprecatedIn37ZDeprecatedIn40ZDeprecatedIn41ZDeprecatedIn42rrr"r*�	Exceptionr+r,�
ModuleTyper3rSr]r^r	r	r	r
�<module>s.


�