관리-도구
편집 파일: test_Padding.cpython-311.pyc
� O�Dg� � �� � d dl Z d dlmZ d dlT d dlmZ d dlmZm Z G d� de j � � Z G d� d e j � � Z G d � de j � � Z i fd�Zed k rd� Z e j d�� � dS dS )� N)� unhexlify)�*)�list_test_cases)�pad�unpadc �8 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z dS ) �PKCS7_Testsc � � t t d� � d� � }| � |t t d� � � � k � � t t d� � dd� � }| � |t t d� � � � k � � t |d� � }| � |t d� � k � � d S )N� � �04040404�pkcs7�r �b� assertTrue�uhr ��self�padded�backs ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Util/test_Padding.py�test1zPKCS7_Tests.test1+ s� � ��Q�r�U�U�A��������"�Q�z�]�]�"3�"3�3�4�4�4��Q�r�U�U�A�w�'�'������"�Q�z�]�]�"3�"3�3�4�4�4��V�Q���������"��� �&�&�&�&�&� c �F � t t t d� � � � d� � }| � |t t d� � � � k � � t |d� � }| � |t t d� � � � k � � d S )N�12345678r �1234567804040404�r r r r r r s r �test2zPKCS7_Tests.test23 s� � ��R��*� � �&�&��*�*������"�Q�'9�%:�%:�";�";�;�<�<�<��V�Q���������1�Z�=�=� 1� 1�1�2�2�2�2�2r c �F � t t t d� � � � d� � }| � |t t d� � � � k � � t |d� � }| � |t t d� � � � k � � d S )N�123456r �12345601r r s r �test3zPKCS7_Tests.test39 sz � ��R��(���_�_�a�(�(������"�Q�z�]�]�"3�"3�3�4�4�4��V�Q���������1�X�;�;���/�0�0�0�0�0r c �F � t t t d� � � � d� � }| � |t t d� � � � k � � t |d� � }| � |t t d� � � � k � � d S )N� 1234567890r �1234567890030303r r s r �test4zPKCS7_Tests.test4? s� � ��R��,���(�(�!�,�,������"�Q�'9�%:�%:�";�";�;�<�<�<��V�Q���������1�\�?�?� 3� 3�3�4�4�4�4�4r c � � | � t t t t d� � � � dd� � d S )N�12r �pkcs8)�assertRaises� ValueErrorr r r �r s r �testn1zPKCS7_Tests.testn1E s0 � ����*�c�2�a��g�g�;�;��7�C�C�C�C�Cr c �� � | � t t t d� � d� � | � t t t d� � d� � d S )Nz r r �r* r+ r r r, s r �testn2zPKCS7_Tests.testn2H sH � ����*�e�Q�x�[�[�!�<�<�<����*�e�Q�r�U�U�A�6�6�6�6�6r c � � | � t t t d� � d� � | � t t t d� � d� � | � t t t d� � d� � d S )N�123456r �123456 z123456r/ r, s r �testn3zPKCS7_Tests.testn3L sk � ����*�e�Q�|�_�_�a�@�@�@����*�e�Q�|�_�_�a�@�@�@����*�e�Q�/K�-L�-L�a�P�P�P�P�Pr N) �__name__� __module__�__qualname__r r r"