관리-도구
편집 파일: test_SHA1.cpython-311.pyc
� O�Dgn � �t � d Z ddlmZ ddlmZ g d�Zi fd�Zedk rddlZd� Z ej d � � � dS dS )z#Self-test suite for Crypto.Hash.SHA� )�hexlify)�load_test_vectors))�(a9993e364706816aba3e25717850c26c9cd0d89d�abc)�(84983e441c3bd26ebaae4aa1f95129e5e54670f1�8abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq)�(dea356a2cddd90c7a7ecedc5ebb563934f460452�� 0123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567012345670123456701234567z"01234567" * 80c �t � ddl m} ddlm} g }t ddddd � i� � pg }t d d � }|D ]p} |� d � � r�n# t $ r Y nw xY w|j dk rd|_ |� t |j � � |j |j f� � �q ||d|d d�� � }|S )Nr )�SHA1� )�make_hash_tests)�Hashr zSHA1ShortMsg.rspz KAT SHA-1�lenc � � t | � � S �N)�int)�xs ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Hash/test_SHA1.py�<lambda>zget_tests.<locals>.<lambda>= s � �C��F�F� � �[r r � z 1.3.14.3.2.26)�digest_size�oid)�Crypto.Hashr �commonr r �test_data_various� startswith�AttributeErrorr �msg�appendr �md�desc)�configr r �tests�test_vectors� test_data�tvs r � get_testsr* 4 s$ � � � � � � � �'�'�'�'�'�'��E�$�%5� 2� +�"'�*:�*:� <�?� ?� E� CE� � "�!�!�!�$�I�� <� <�� ��}�}�S�!�!� �� ��� � � ��D� ���� �6�Q�;�;��B�F����'�"�%�.�.�"�&�"�'�:�;�;�;�;��O�D�&�)�(*� /� 1� 1� 1�E� �Ls �A� A�A�__main__Nc �B � t j t � � � � S r )�unittest� TestSuiter* � r r r r Q s � �H�&�y�{�{�3�3� r �suite)�defaultTest)�__doc__�binasciir �Crypto.SelfTest.loaderr r r* �__name__r- r0 �mainr/ r r �<module>r7 s� ��2 *� )� � � � � � � 4� 4� 4� 4� 4� 4�� � � �&