관리-도구
편집 파일: test_SHA256.cpython-311.pyc
� O�Dg! � � � d Z ddlZddlT G d� dej � � Zi fd�Zedk rddlZd� Z ej d � � � dS dS )z&Self-test suite for Crypto.Hash.SHA256� N)�*c � � e Zd Zd� ZdS )�LargeSHA256Testc � � ddl m} t d� � dz }|� |� � }t d� � D ]}|� |� � �| � d|� � � � � t d� � D ]}|� |� � �| � d|� � � � � dS ) zSHA256: 512/520 MiB testr ��SHA256i i� �@9acca8e8c22201155389f65abbf6bc9723edc7384ead80503839f49dcc56d767� �@abf51ad954b246009dfe5a50ecd582fd5b8f1b8b27f30393853c3ef721e7fa6eN)�Crypto.Hashr �bchr�new�range�update�assertEqual� hexdigest)�selfr �zeros�h�is ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Hash/test_SHA256.py�runTestzLargeSHA256Test.runTest s� � �&�&�&�&�&�&��T� � �i�(���J�J�u�����s��� � �A� �H�H�U�O�O�O�O� ���[�]^�]h�]h�]j�]j�k�k�k��q��� � �A� �H�H�U�O�O�O�O� ���[�]^�]h�]h�]j�]j�k�k�k�k�k� N)�__name__� __module__�__qualname__r � r r r r s( � � � � � �l� l� l� l� lr r c � � dddddz dfddd g}d dl m} dd lm} ||d|dd�� � }| � d� � r|t � � gz }|S )N)�@ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad�abc)�@248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1�8abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq�@cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0�ai@B z"a" * 10**6)�@f7fd017a3c721ce7ff03f3552c0813adcc48b7f33f07e5e2ba71e23ea393d103z7This message is precisely 55 bytes long, to test a bug.zLength = 55 (mod 64))�@e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855� )�@d32b568cd1b96d459e7291ebf4b25d007f275c9f13149beeb782fac0716613f8z;Franz jagt im komplett verwahrlosten Taxi quer durch Bayernr r � )�make_hash_testsr � z2.16.840.1.101.3.4.2.1)�digest_size�oid� slow_tests)r r �commonr* �getr )�config� test_datar r* �testss r � get_testsr4 1 s� � � � H� L��%�K� � � $� Q� H�-�I�4 #�"�"�"�"�"�'�'�'�'�'�'��O�F�H�i��$� &� &� &�E� �z�z�,��� %� �/�#�#�$�$���Lr �__main__c �B � t j t � � � � S )N)�unittest� TestSuiter4 r r r �<lambda>r9 [ s � �H�&�y�{�{�3�3� r �suite)�defaultTest) �__doc__r7 �Crypto.Util.py3compat�TestCaser r4 r r: �mainr r r �<module>r@ s� ��2 -� ,� ���� #� #� #� #�l� l� l� l� l�h�'� l� l� l�&